From 42e8baa85c4e476fac5f32252e0ef73ca24c2813 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Tue, 27 Jul 2021 20:38:30 +0800
Subject: [PATCH] 添加新群号
---
ruoyi-ui/src/utils/request.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ruoyi-ui/src/utils/request.js b/ruoyi-ui/src/utils/request.js
index 0dcb7ed..46a593b 100644
--- a/ruoyi-ui/src/utils/request.js
+++ b/ruoyi-ui/src/utils/request.js
@@ -27,7 +27,7 @@
for (const propName of Object.keys(config.params)) {
const value = config.params[propName];
var part = encodeURIComponent(propName) + "=";
- if (value && typeof(value) !== "undefined") {
+ if (value !== null && typeof(value) !== "undefined") {
if (typeof value === 'object') {
for (const key of Object.keys(value)) {
let params = propName + '[' + key + ']';
@@ -65,7 +65,8 @@
store.dispatch('LogOut').then(() => {
location.href = '/index';
})
- })
+ }).catch(() => {});
+ return Promise.reject('error')
} else if (code === 500) {
Message({
message: msg,
--
Gitblit v1.9.3