Browse Source

fix issue #487

tags/v1.21.10.1^2
zhoupzh 3 years ago
parent
commit
fc5a45654e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      web_src/js/components/EditTopics.vue

+ 2
- 2
web_src/js/components/EditTopics.vue View File

@@ -197,13 +197,13 @@ export default {
})
},
postTopic(){
const patter = /^[\u4e00-\u9fa5a-z0-9][\u4e00-\u9fa5a-zA-Z0-9-]{0,35}$/
const patter = /^[\u4e00-\u9fa5a-zA-Z0-9][\u4e00-\u9fa5a-zA-Z0-9-]{0,34}$/
let regexp = patter.test(this.input)
console.log("regexp",regexp)
if(!regexp){
this.$notify({
message: '主题必须以中文、字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符',
message: '标签名必须以中文、字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符',
duration: 3000,
type:'error'
});


Loading…
Cancel
Save