Ver código fonte

常错词特殊字符放开

newStyle
jyt 2 anos atrás
pai
commit
39506043c9
1 arquivos alterados com 8 adições e 8 exclusões
  1. +8
    -8
      src/views/Template/wrongword.vue

+ 8
- 8
src/views/Template/wrongword.vue Ver arquivo

@@ -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) {
// 编辑


Carregando…
Cancelar
Salvar