From 348e635f7f7f26ce4dd2c5adc0a83b50b8c3dac9 Mon Sep 17 00:00:00 2001
From: 15820893422 <1978476055@qq.com>
Date: Fri, 28 Jun 2024 17:51:17 +0800
Subject: [PATCH] 1
---
admin/src/views/qa/problem.vue | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/admin/src/views/qa/problem.vue b/admin/src/views/qa/problem.vue
index 0871338b..20265cbd 100644
--- a/admin/src/views/qa/problem.vue
+++ b/admin/src/views/qa/problem.vue
@@ -22,12 +22,12 @@
-
-
+
下载图片
下载行程
@@ -77,21 +77,22 @@ export default {
console.log('load')
},
handleprant(val){
- let replaceReg = new RegExp(7, "ig");
- let replaceString = `7`;
+ let replaceReg = new RegExp(this.dataForm.keyword, "ig");
+ let replaceString = `${this.dataForm.keyword}`;
return val.replace(replaceReg, replaceString);
},
onSubmit(){
getQaList(this.dataForm).then(res => {
- this.getQaLists = res.data.data.map((item, index) => {
- if (this.dataForm.keyword) {
- let replaceReg = new RegExp(this.dataForm.keyword, "ig");
- let replaceString = `${this.dataForm.keyword}`;
- item.title = item.title.replace(replaceReg, replaceString);
- item.content = item.content.replace(replaceReg, replaceString);
- }
- return item
- });
+ // this.getQaLists = res.data.data.map((item, index) => {
+ // if (this.dataForm.keyword) {
+ // let replaceReg = new RegExp(this.dataForm.keyword, "ig");
+ // let replaceString = `${this.dataForm.keyword}`;
+ // item.title = item.title.replace(replaceReg, replaceString);
+ // item.content = item.content.replace(replaceReg, replaceString);
+ // }
+ // return item
+ // });
+ this.getQaLists = res.data.data
})
}
}