fix: 仅主 API 的 401 清除登录态,避免模块服务误登出
This commit is contained in:
@@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user