mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-07 23:41:28 +08:00
fix
This commit is contained in:
@@ -93,12 +93,15 @@ onMounted(() => {
|
||||
const remember = localStorage.getItem('remember')
|
||||
|
||||
// 如果token存在,且保持登录状态为true,则跳转到首页
|
||||
if (token && remember === 'true')
|
||||
if (token && remember === 'true') {
|
||||
router.push('/')
|
||||
|
||||
}
|
||||
else {
|
||||
// 获取背景图片
|
||||
fetchBackgroundImage()
|
||||
})
|
||||
fetchBackgroundImage()
|
||||
}
|
||||
},
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -11,6 +11,9 @@ const router = createRouter({
|
||||
{
|
||||
path: 'dashboard',
|
||||
component: () => import('../pages/dashboard.vue'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'ranking',
|
||||
|
||||
Reference in New Issue
Block a user