调整登录
This commit is contained in:
@@ -13,7 +13,7 @@ export const mainStore = defineStore('main', {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
return this.token = res.data
|
return this.token = res.data
|
||||||
}
|
} else return Promise.reject()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
@@ -34,4 +34,4 @@ export const mainStore = defineStore('main', {
|
|||||||
{storage: localStorage}
|
{storage: localStorage}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<ku-login :title="$sys.title" border @login="$message.success('登录成功!')"/>
|
<ku-login :title="$sys.title" border @login="$message.success('登录成功!')&$router.push({name:'工作台'})"/>
|
||||||
<div class="copyright sub" v-text="`copyright @2022 ${$sys.title}`"/>
|
<div class="copyright sub" v-text="`copyright @2022 ${$sys.title}`"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -31,4 +31,4 @@ export default {
|
|||||||
font-family: PingFang SC-Regular, PingFang SC;
|
font-family: PingFang SC-Regular, PingFang SC;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user