From ca73a173f008c8d7a9d700bad897ca24fe2d2203 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 16 十月 2023 09:29:57 +0800
Subject: [PATCH] 111
---
minipro_standard/store/index.js | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/minipro_standard/store/index.js b/minipro_standard/store/index.js
index 0b2d826..cb25fd3 100644
--- a/minipro_standard/store/index.js
+++ b/minipro_standard/store/index.js
@@ -81,7 +81,7 @@
let res = await getTreeList({
type: type
})
- if (res.code === 200) {
+ if (res && res.code === 200) {
content.commit('SETMENU', res.data)
}
},
@@ -104,8 +104,9 @@
},
async getUpcomingNum(context) {
- let res = await pageCount({})
- if (res.code === 200) {
+ let res = await pageCount({})
+
+ if (res && res.code === 200) {
context.commit('SETNUM', {
d: res.data.startNum,
y: res.data.endNum
@@ -115,7 +116,7 @@
// 鍚戝悗绔幏鍙栦釜浜轰俊鎭�
async getUserInfos(content) {
let res = await getUserInfo()
- if (res.code === 200) {
+ if (res && res.code === 200) {
content.commit('SETUSERINFO', res.data)
return true;
}
--
Gitblit v1.9.3