From 42853882a59754b918ed6414b990146514b9b189 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期五, 22 九月 2023 20:34:39 +0800
Subject: [PATCH] 小程序
---
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