Merge branch 'main' of https://git.nuttyreading.com/zm/taimed-international-app
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user