Commit bfdbea41 by 无尘

fix: 修改接口提示信息

parent 5dd2f066
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-10-16 14:22:10 * @Date: 2020-10-16 14:22:10
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-10-21 11:01:12 * @LastEditTime: 2020-12-08 16:18:36
--> -->
<!-- <!--
使用帮助 使用帮助
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
that.$refs['ruleForm'].resetFields(); that.$refs['ruleForm'].resetFields();
that.$emit('closeMarket', true); that.$emit('closeMarket', true);
}else { }else {
showMsg.showmsg(res.message || '未知错误', 'warning'); showMsg.showmsg(res.code == '0002' ? '数据加载失败' : res.message || '接口错误', 'warning');
} }
}) })
.catch(error => { .catch(error => {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-09-01 17:16:25 * @Date: 2020-09-01 17:16:25
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-09-21 10:29:20 * @LastEditTime: 2020-12-08 16:18:49
--> -->
<!-- <!--
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
that.$refs['tagForm'].resetFields(); that.$refs['tagForm'].resetFields();
that.$emit('closeTag', 'success'); that.$emit('closeTag', 'success');
}else { }else {
showMsg.showmsg(res.message || '未知错误', 'warning'); showMsg.showmsg(res.code == '0002' ? '数据加载失败' : res.message || '接口错误', 'warning');
} }
}) })
.catch(error => { .catch(error => {
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
that.$refs['tagForm'].resetFields(); that.$refs['tagForm'].resetFields();
that.$emit('closeTag', 'success'); that.$emit('closeTag', 'success');
}else { }else {
showMsg.showmsg(res.message || '未知错误', 'warning'); showMsg.showmsg(res.code == '0002' ? '数据加载失败' : res.message || '接口错误', 'warning');
} }
}) })
.catch(error => { .catch(error => {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-09-01 13:53:59 * @Date: 2020-09-01 13:53:59
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-09-21 10:31:37 * @LastEditTime: 2020-12-08 16:19:07
--> -->
<!-- <!--
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
that.$refs['tagForm'].resetFields(); that.$refs['tagForm'].resetFields();
that.$emit('closeClassify', that.form.categoryName); that.$emit('closeClassify', that.form.categoryName);
}else { }else {
showMsg.showmsg(res.message || '未知错误', 'warning'); showMsg.showmsg(res.code == '0002' ? '数据加载失败' : res.message || '接口错误', 'warning');
} }
}) })
.catch(error => { .catch(error => {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-08-27 09:14:54 * @Date: 2020-08-27 09:14:54
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-30 11:22:13 * @LastEditTime: 2020-12-08 16:19:14
--> -->
<!-- <!--
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
showMsg.showmsg('解绑成功', 'success'); showMsg.showmsg('解绑成功', 'success');
}else { }else {
that.$message({ that.$message({
message: res.message || '未知错误', message: res.code == '0002' ? '数据加载失败' : res.message || '接口错误',
type: 'warning' type: 'warning'
}); });
} }
......
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
that.$emit('submitText'); that.$emit('submitText');
}else { }else {
that.$message({ that.$message({
message: res.message || '未知错误', message: res.code == '0002' ? '数据加载失败' : res.message || '接口错误',
type: 'warning' type: 'warning'
}); });
that.$emit('submitText'); that.$emit('submitText');
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-16 16:37:05 * @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-27 11:37:28 * @LastEditTime: 2020-12-08 16:16:39
*/ */
import axios from 'axios'; import axios from 'axios';
import qs from 'qs'; import qs from 'qs';
...@@ -66,7 +66,7 @@ const request = (opt, params, config) => { ...@@ -66,7 +66,7 @@ const request = (opt, params, config) => {
let response = error.response || {}; let response = error.response || {};
let data = response.data || {}; let data = response.data || {};
Message({ Message({
message: data.message || '未知错误', message: data.message || '数据加载失败',
type: 'warning' type: 'warning'
}); });
reject(error); reject(error);
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-30 11:36:55 * @LastEditTime: 2020-12-08 16:19:25
--> -->
<template> <template>
<div class="my-customer-wrap common-set-wrap"> <div class="my-customer-wrap common-set-wrap">
...@@ -216,7 +216,7 @@ export default { ...@@ -216,7 +216,7 @@ export default {
showMsg.showmsg('取消审核成功', 'success'); showMsg.showmsg('取消审核成功', 'success');
}else if( res.code == '100003' || res.code == '100004'){ }else if( res.code == '100003' || res.code == '100004'){
that.$message({ that.$message({
message: res.message || '未知错误', message: res.code == '0002' ? '数据加载失败' : res.message || '接口错误',
type: 'warning' type: 'warning'
}); });
that.currentPage = 1; that.currentPage = 1;
......
...@@ -213,7 +213,7 @@ export default { ...@@ -213,7 +213,7 @@ export default {
that.$router.push('/admin-list'); that.$router.push('/admin-list');
}else { }else {
that.$message({ that.$message({
message: res.message || '未知错误', message: res.code == '0002' ? '数据加载失败' : res.message || '接口错误',
type: 'warning' type: 'warning'
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment