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