This commit is contained in:
faiz 2024-07-31 10:52:47 +08:00
parent 3ae9e1b1d2
commit 78f2538081
1 changed files with 6 additions and 1 deletions

View File

@ -479,7 +479,12 @@ export default {
const regex = /\/([^\/]+)$/; const regex = /\/([^\/]+)$/;
const match = val.match(regex); const match = val.match(regex);
console.log(match[1]); console.log(match[1]);
return match[1];
return !!match[1] ? match[1] : val;
},
handleFilter() {
this.listQuery.page = 1;
this.getList();
}, },
onAdd() { onAdd() {
this.anchors.qaQuestions = [ this.anchors.qaQuestions = [