feat: 添加每日推荐 样式, 请求等大量优化

This commit is contained in:
alger
2024-05-22 12:07:48 +08:00
parent c6f1e0b233
commit 32b39c7927
23 changed files with 409 additions and 103 deletions
+3 -1
View File
@@ -68,8 +68,9 @@ const loadPage = async () => {
localStorage.setItem('user', JSON.stringify(data.profile));
};
loadPage();
watchEffect(() => {
loadPage();
if (store.state.user) {
userSetOptions.value = USER_SET_OPTIONS;
} else {
@@ -118,6 +119,7 @@ const selectItem = async (key: string) => {
logout().then(() => {
store.state.user = null;
localStorage.clear();
router.push('/login');
});
break;
case 'login':