From 3ae9e1b1d27bed436af39281750d0c7d4b5eee59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Wed, 31 Jul 2024 10:51:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=88=99=E5=A4=84=E7=90=86=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/qa/qa.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/admin/src/views/qa/qa.vue b/admin/src/views/qa/qa.vue index 6bc9faa6..5d530974 100644 --- a/admin/src/views/qa/qa.vue +++ b/admin/src/views/qa/qa.vue @@ -184,7 +184,7 @@ class="avatar" alt="" /> -
{{ item }}
+
{{ handleRegex(item) }}
@@ -210,7 +210,7 @@ class="avatar" alt="" /> -
{{ item }}
+
{{ handleRegex(item) }}
@@ -316,7 +316,7 @@ class="avatar" alt="" /> -
{{ item }}
+
{{ handleRegex(item) }}
@@ -342,7 +342,7 @@ class="avatar" alt="" /> -
{{ item }}
+
{{ handleRegex(item) }}
@@ -475,6 +475,12 @@ export default { ); console.log("====111122222===" + this.anchors.trip_zip); }, + handleRegex(val) { + const regex = /\/([^\/]+)$/; + const match = val.match(regex); + console.log(match[1]); + return match[1]; + }, onAdd() { this.anchors.qaQuestions = [ {