From 5b147bafaa1834aac0681091e48832318764104e Mon Sep 17 00:00:00 2001 From: yzw <2431960323@qq.com> Date: Wed, 20 Jul 2022 10:55:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=B2=97=E4=BD=8D=E5=92=8C?= =?UTF-8?q?=E6=9D=83=E9=99=90=E7=AE=A1=E7=90=86=EF=BC=8C=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=E5=88=B0gitee?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/priority/components/add.vue | 6 ++++++ vue.config.js | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/priority/components/add.vue b/src/views/priority/components/add.vue index 6875e5c..b3f8c4c 100644 --- a/src/views/priority/components/add.vue +++ b/src/views/priority/components/add.vue @@ -142,6 +142,12 @@ export default { type: "success", duration: 2000, }); + } else { + this.$message({ + message: res.code + " " + res.msg, + type: "error", + duration: 2000, + }); } }, (err) => { diff --git a/vue.config.js b/vue.config.js index b34a86a..ee11d71 100644 --- a/vue.config.js +++ b/vue.config.js @@ -38,8 +38,8 @@ module.exports = { }, proxy: { '/': { - target: 'http://127.0.0.1:4523/m1/1256020-0-default/', - // target: 'http://192.168.31.102:8000', + // target: 'http://127.0.0.1:4523/m1/1256020-0-default/', + target: 'http://192.168.31.102:8000', changeOrigin: true, pathRewrite: { }