This commit is contained in:
2025-12-18 15:57:54 +08:00
6 changed files with 32 additions and 15 deletions

View File

@@ -459,7 +459,12 @@ const requestAll = async () => {
onMounted(() => {
// 重置分类索引
currentIndex.value = 0
if(!uni.getStorageSync('state') && !uni.getStorageSync('token')) {
uni.navigateTo({
url: '/pages/login/login'
});
}
if(uni.getStorageSync('state')) uni.removeStorageSync('state')
// 请求所有数据
requestAll()
})