添加 请求 修改登录页

This commit is contained in:
GGJ
2023-12-26 08:45:15 +08:00
parent 46eb2d93fb
commit fea95de2da
34 changed files with 5892 additions and 541 deletions

View File

@@ -26,6 +26,7 @@ export const useAdminInfo = defineStore('adminInfo', {
setToken(token: string, type: 'auth' | 'refresh') {
const field = type == 'auth' ? 'token' : 'refresh_token'
this[field] = token
window.localStorage.setItem('token', token)
},
getToken(type: 'auth' | 'refresh' = 'auth') {
return type === 'auth' ? this.token : this.refresh_token