mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-13 18:11:03 +08:00
fix: 没有登陆时不触发 token 刷新
This commit is contained in:
@@ -11,8 +11,10 @@ const theme: GlobalThemeOverrides = {
|
||||
},
|
||||
};
|
||||
|
||||
const { refresh } = useAuth();
|
||||
refresh();
|
||||
const { refresh, isLogin } = useAuth();
|
||||
if (isLogin.value) {
|
||||
refresh();
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user