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: { }