Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 970d488

Browse files
committed
fix: 没有登陆时不触发 token 刷新
1 parent 8532181 commit 970d488

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/App.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ const theme: GlobalThemeOverrides = {
1111
},
1212
};
1313
14-
const { refresh } = useAuth();
15-
refresh();
14+
const { refresh, isLogin } = useAuth();
15+
if (isLogin.value) {
16+
refresh();
17+
}
1618
</script>
1719

1820
<template>

0 commit comments

Comments
 (0)