From 349bcef9a96391d22522a3409adf5a89e7e70a95 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 24 十月 2023 08:46:11 +0800
Subject: [PATCH] Merge branch 'dev' of http://139.186.142.91:10010/r/productDev/dmMes into dev
---
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