From f8f5b7fb50d7d3622d99cebff6094330adbed060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=99=E7=A0=81=E7=94=9F=E8=8A=B1?= <18523774412@qq.com> Date: Mon, 21 Mar 2022 04:33:20 +0800 Subject: [PATCH] =?UTF-8?q?style:=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/api/backend/index.ts | 12 +++++------- web/src/components/remoteSelect/index.vue | 10 +++++++++- web/src/stores/adminInfo.ts | 2 +- web/src/views/backend/login.vue | 7 ++++++- 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/web/src/api/backend/index.ts b/web/src/api/backend/index.ts index 91ea036a..903b141e 100644 --- a/web/src/api/backend/index.ts +++ b/web/src/api/backend/index.ts @@ -8,11 +8,9 @@ export function index() { } export function login(method: 'get' | 'post', params: object = {}) { - return createAxios( - { - url: '/index.php/admin/index/login', - data: params, - method: method, - } - ) + return createAxios({ + url: '/index.php/admin/index/login', + data: params, + method: method, + }) } diff --git a/web/src/components/remoteSelect/index.vue b/web/src/components/remoteSelect/index.vue index 1b75071e..8e7dc887 100644 --- a/web/src/components/remoteSelect/index.vue +++ b/web/src/components/remoteSelect/index.vue @@ -1,5 +1,13 @@ diff --git a/web/src/stores/adminInfo.ts b/web/src/stores/adminInfo.ts index 9a69e59d..76657056 100644 --- a/web/src/stores/adminInfo.ts +++ b/web/src/stores/adminInfo.ts @@ -10,7 +10,7 @@ export const useAdminInfo = defineStore('adminInfo', { nickname: '', avatar: '', lastlogintime: '', - token: '' + token: '', } }, persist: { diff --git a/web/src/views/backend/login.vue b/web/src/views/backend/login.vue index 2dc5bcbd..6259a73b 100644 --- a/web/src/views/backend/login.vue +++ b/web/src/views/backend/login.vue @@ -67,7 +67,12 @@ - +