Commit bca2d64f by tang

feat: 错误提示

parent 37be0f2f
......@@ -112,7 +112,7 @@ export default {
if (data.returnCode === '0') {
this.result = [data];
} else {
this.errorMsg = "暂无数据";
this.errorMsg = searchGlnRes.returnMsg || "暂无数据";
}
} else {
this.errorMsg =
......
......@@ -121,8 +121,10 @@ export default {
const params = {...this.search};
const searchGlnRes = await this.$api.search.searchGln(params);
const {returnCode, data} = searchGlnRes;
console.log(searchGlnRes)
console.log(data)
if (returnCode === "0") {
if (data.returnCode === '0') {
if (data.returnCode === '0' || data.returnCode === '3') {
this.result = [data];
} else {
this.errorMsg = "暂无数据";
......
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