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
})
}
}