From 78f2538081e0dc4851585c6294ea85ee8135b212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Wed, 31 Jul 2024 10:52:47 +0800 Subject: [PATCH] 1 --- admin/src/views/qa/qa.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin/src/views/qa/qa.vue b/admin/src/views/qa/qa.vue index 5d530974..f4f2c6b7 100644 --- a/admin/src/views/qa/qa.vue +++ b/admin/src/views/qa/qa.vue @@ -479,7 +479,12 @@ export default { const regex = /\/([^\/]+)$/; const match = val.match(regex); console.log(match[1]); - return match[1]; + + return !!match[1] ? match[1] : val; + }, + handleFilter() { + this.listQuery.page = 1; + this.getList(); }, onAdd() { this.anchors.qaQuestions = [