优化框架

This commit is contained in:
2024-08-08 01:53:51 +08:00
parent d0adbaff13
commit 24e63cf551
16 changed files with 1454 additions and 493 deletions
+4 -1
View File
@@ -21,7 +21,10 @@ export const useMpStore = defineStore({
* 请求用户信息、权限、角色、菜单
*/
async fetchMpInfo() {
const info = await getMpInfo().catch(() => void 0);
const info = await getMpInfo().catch((err => {
console.log(err.code,'fetchMpInfo()')
uni.clearStorageSync()
}));
if (!info) {
return {};
}