flat: 性能优化,animation 等\preload等

This commit is contained in:
Apcallover
2025-12-01 20:29:19 +08:00
parent ecfacd13e3
commit 16b8ca84cd
20 changed files with 169 additions and 64 deletions

View File

@@ -137,10 +137,12 @@ export function createRequest(url, data = {}, method = 'GET', loading = false, h
resolve(resData.data)
return
}
uni.showToast({
title: msg,
icon: 'none'
})
if (msg) {
uni.showToast({
title: msg,
icon: 'none'
})
}
}
if (resData.data?.code === 401 || resData.data?.code === 402) {
useUserStore().logOut()