Browse Source

常错词特殊字符放开

newStyle
jyt 2 years ago
parent
commit
39506043c9
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      src/views/Template/wrongword.vue

+ 8
- 8
src/views/Template/wrongword.vue View File

@@ -282,14 +282,14 @@ export default {
},
addSure() {
// this.loadingFlag = true;
this.ruleForm.correctWord = this.ruleForm.correctWord.replace(
/[^\w\u4e00-\u9fa5]/g,
""
);
this.ruleForm.wrongWord = this.ruleForm.wrongWord.replace(
/[^\w\u4e00-\u9fa5]/g,
""
);
// this.ruleForm.correctWord = this.ruleForm.correctWord.replace(
// /[^\w\u4e00-\u9fa5]/g,
// ""
// );
// this.ruleForm.wrongWord = this.ruleForm.wrongWord.replace(
// /[^\w\u4e00-\u9fa5]/g,
// ""
// );
this.$refs.ruleForm.validate((valid) => {
if (valid) {
// 编辑


Loading…
Cancel
Save