|
|
@@ -202,6 +202,8 @@ const logOut = (pla:'pc'|'') => {
|
|
|
user.isLogin = false
|
|
|
if (pla !== 'pc') {
|
|
|
router.push({ path: '/login' })
|
|
|
+ } else {
|
|
|
+ router.push({ path: '/home' })
|
|
|
}
|
|
|
}
|
|
|
const toSetting = () => {
|
|
|
@@ -384,7 +386,11 @@ const submitForm = async(formEl: FormInstance | undefined) => {
|
|
|
await user.getUserProfile()
|
|
|
// 跳转我的游戏页面
|
|
|
setTimeout(() => {
|
|
|
- router.push({ path: '/my_game', query: { account: loginForm.account }})
|
|
|
+ if (route.path !== '/my_game') {
|
|
|
+ router.push({ path: '/my_game', query: { account: loginForm.account }})
|
|
|
+ } else {
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
local.set('headerPath', '我的')
|
|
|
}, 1000)
|
|
|
}
|