|
|
@ -352,12 +352,12 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
async saveOrUpdateLayer() { |
|
|
|
const reg = /^(?=.{1,30}$)[\u4e00-\u9fa5\w:]+$/; |
|
|
|
const reg = /^(?=.{1,100}$)[\u4e00-\u9fa5\w:]+$/; |
|
|
|
if (!reg.test(this.editDataInfoForm.serviceName)) { |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: |
|
|
|
"格式有误,目录名称仅支持中文、数字、字母、下划线、冒号,最大长度不超过30", |
|
|
|
"格式有误,目录名称仅支持中文、数字、字母、下划线、冒号,最大长度不超过100", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|