优化框架
This commit is contained in:
@@ -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 {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user