diff --git a/src/views/atomViews/ListViewWithHead.vue b/src/views/atomViews/ListViewWithHead.vue index 34f4c16..d75e820 100644 --- a/src/views/atomViews/ListViewWithHead.vue +++ b/src/views/atomViews/ListViewWithHead.vue @@ -260,6 +260,12 @@ export default { duration: 1500, }); this.getList(); + } else { + this.$message({ + message: `${res.code}: ${res.msg}`, + type: "error", + duration: 1500, + }); } }) .catch((errMsg) => { @@ -288,10 +294,10 @@ export default { } else { params[cond] = ""; } - } else if (typeof cond === 'object') { - Object.keys(cond).forEach(key => { - params[key] = cond[key] - }) + } else if (typeof cond === "object") { + Object.keys(cond).forEach((key) => { + params[key] = cond[key]; + }); } }); console.log("查询", params);