fix: 仅主 API 的 401 清除登录态,避免模块服务误登出

This commit is contained in:
2026-10-31 02:19:36 +08:00
parent 6b6d9baefb
commit f88b891d8b
2 changed files with 11 additions and 4 deletions
-1
View File
@@ -23,7 +23,6 @@ export const useMpStore = defineStore({
async fetchMpInfo() {
const info = await getMpInfo().catch((err => {
console.log(err.code,'fetchMpInfo()')
uni.clearStorageSync()
}));
if (!info) {
return {};