瀏覽代碼

项目名称正反斜杆限制

master
kim131 4 年之前
父節點
當前提交
0d8eae5cf1
共有 2 個文件被更改,包括 14 次插入3 次删除
  1. +12
    -1
      src/views/components_web/newProj/newProj.vue
  2. +2
    -2
      vue.config.js

+ 12
- 1
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({


+ 2
- 2
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,


Loading…
取消
儲存