diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/components/AddNEditDialog.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/components/AddNEditDialog.vue index ea6cabfd..0324ea60 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/components/AddNEditDialog.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/components/AddNEditDialog.vue @@ -4,7 +4,7 @@
- this.checkRepeat(); + @@ -72,10 +72,9 @@ export default { }, methods: { checkRepeat(word){ - let temp = _.find(this.data, { word: word }); - console.log(temp, 'ttttttttttt') - if (temp) { - this.$message.danger("该关键词已存在。") + let temp = _.find(this.dataAll, { word: word }); + if (temp && Object.keys(temp).length>0) { + this.$message.error("该关键词已存在。"); return false } else { return true; diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index 435592ca..7b307e3c 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -49,9 +49,9 @@ module.exports = { // target: `http://10.0.81.202:8087`, //现场后台 // target: `http://10.0.81.204:8087`, //现场后台 刘文阁 // target: `http://10.168.69.255:8087`, //正晨后台 连现场物联 刘文阁 - // target: `http://10.168.78.135:8087`, //王钦 + target: `http://10.168.78.135:8087`, //王钦 // target: `http://10.168.66.196:8087`, //正晨后台 连现场物联 刘文阁2 - target: `http://10.168.68.42:8087`, //王思祥 + // target: `http://10.168.68.42:8087`, //王思祥 changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "",