From 86741def1c1505c026f7ae9e5ba5974142058523 Mon Sep 17 00:00:00 2001 From: Eddie <102564160@qq.com> Date: Wed, 11 Aug 2021 14:47:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=99=BB=E5=BD=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/admin.js | 2 +- src/api/user.js | 19 ++++++++++-- src/components/AdminInfoDialog/index.vue | 4 +-- src/permission.js | 2 +- src/router/modules/books-management.js | 2 +- src/router/modules/member-management.js | 2 +- src/router/modules/sort-management.js | 2 +- src/store/modules/user.js | 25 +++++++-------- src/utils/auth.js | 2 +- src/utils/request.js | 13 +++++--- .../books-management/ShuYuan-page/index.vue | 6 ++-- src/views/login/index.vue | 1 + .../components/memberDialog.vue | 31 +++++++++++++------ .../otherSettingsDialog.vue | 23 ++++++++++---- .../components/check-books-dialog.vue | 1 - 15 files changed, 87 insertions(+), 48 deletions(-) diff --git a/src/api/admin.js b/src/api/admin.js index 5696497..b4fa27e 100644 --- a/src/api/admin.js +++ b/src/api/admin.js @@ -6,7 +6,7 @@ import request from '@/utils/request' */ export function getAdminInfo() { return request({ - url: '/admin/Index/userInfo', + url: '/user/info', method: 'get' }) } diff --git a/src/api/user.js b/src/api/user.js index d22c66c..dcbb05f 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -1,13 +1,28 @@ import request from '@/utils/request' -export function login(data) { +export function login(params) { return request({ - url: '/Login/login', + url: 'user/login', + method: 'POST', + params: params + }) +} + + +export function loginRegister(data) { + return request({ + url: '/user/register', method: 'post', data }) } + + + + + + export function sendCode(data) { return request({ url: '/Login/loginSms', diff --git a/src/components/AdminInfoDialog/index.vue b/src/components/AdminInfoDialog/index.vue index 316f925..e88de25 100644 --- a/src/components/AdminInfoDialog/index.vue +++ b/src/components/AdminInfoDialog/index.vue @@ -37,12 +37,12 @@