|
@@ -282,14 +282,14 @@ export default { |
|
|
}, |
|
|
}, |
|
|
addSure() { |
|
|
addSure() { |
|
|
// this.loadingFlag = true; |
|
|
// 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) => { |
|
|
this.$refs.ruleForm.validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
// 编辑 |
|
|
// 编辑 |
|
|