|
@@ -151,8 +151,8 @@ const handleToPersonalCenter = () => {
|
|
|
const handleLogout = async (index) => {
|
|
|
// try {
|
|
|
await userStore.userLogout()
|
|
|
- // if (index) router.push({ path: `/login?loginType=${index}` })
|
|
|
- if (index) router.push({ name: '/login', query: { loginType: index } })
|
|
|
+ // if (index) router.push({ name: '/login', query: { loginType: index } })
|
|
|
+ if (index) router.push({ path: `/login?loginType=${index}` })
|
|
|
else router.push({ path: '/login' })
|
|
|
// } catch (error) {
|
|
|
// console.log(error, 'error')
|