From 0d8eae5cf1061cdb99eef72b033fcf7e953059ca Mon Sep 17 00:00:00 2001 From: kim131 <1035828775@qq.com> Date: Wed, 18 Nov 2020 11:26:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=90=8D=E7=A7=B0=E6=AD=A3?= =?UTF-8?q?=E5=8F=8D=E6=96=9C=E6=9D=86=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components_web/newProj/newProj.vue | 13 ++++++++++++- vue.config.js | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/views/components_web/newProj/newProj.vue b/src/views/components_web/newProj/newProj.vue index a574c467..a45e02d0 100644 --- a/src/views/components_web/newProj/newProj.vue +++ b/src/views/components_web/newProj/newProj.vue @@ -960,7 +960,7 @@ this.$confirm("退出职员选择将清空您的所有操作!确定返回吗?", "", { confirmButtonText: "退出", cancelButtonText: "取消", - showClose:false, + //showClose:false, type: "warning" }).then(() => { this.newProjData.listFolder[this.nowFolderIndex] = this.currSelectData; @@ -1547,6 +1547,17 @@ }); return; } + let rg = /[/\\]{1,}/g; + if (rg.test(this.newProjData.projectData.projName)) { + this.$notify({ + title: "温馨提示", + message: "项目名称请不要包含'/' '\\'等字符", + type: "warning", + offset: 100, + duration: 2500 + }); + return; + } if (this.newProjData.projectData.templateID == undefined || this.newProjData.projectData.templateID == null || this.newProjData.projectData.templateID == "") { this.$notify({ diff --git a/vue.config.js b/vue.config.js index 63389583..5d441659 100644 --- a/vue.config.js +++ b/vue.config.js @@ -31,8 +31,8 @@ module.exports = { devServer: { proxy: { '/api/pms': { - target: 'http://47.104.91.134:8089', - // target:'http://10.240.32.176:8089', + // target: 'http://47.104.91.134:8089', + target:'http://10.240.32.217:8089', changeOrigin: true, secure: false,