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 @@ - +