wechat login is ready

This commit is contained in:
RockYang
2024-07-04 15:34:32 +08:00
parent b399fc557a
commit bddd611cc1
15 changed files with 416 additions and 238 deletions

View File

@@ -215,10 +215,11 @@ const init = () => {
const logout = function () {
httpGet('/api/user/logout').then(() => {
removeUserToken()
store.setShowLoginDialog(true)
loginUser.value = {}
// 刷新组件
routerViewKey.value += 1
router.push("/login")
// store.setShowLoginDialog(true)
// loginUser.value = {}
// // 刷新组件
// routerViewKey.value += 1
}).catch(() => {
ElMessage.error('注销失败!');
})