From 4ed14c65179834d1d6a484262d589ffb40ec8d89 Mon Sep 17 00:00:00 2001 From: 15820893422 <1978476055@qq.com> Date: Thu, 27 Jun 2024 18:57:13 +0800 Subject: [PATCH] 1 --- admin/src/api/qa.js | 6 +- admin/src/router/index.js | 9 +++ admin/src/views/qa/problem.vue | 137 +++++++++++++++++++++++++++++++++ 3 files changed, 148 insertions(+), 4 deletions(-) create mode 100644 admin/src/views/qa/problem.vue diff --git a/admin/src/api/qa.js b/admin/src/api/qa.js index 13ae8182..c13a1441 100644 --- a/admin/src/api/qa.js +++ b/admin/src/api/qa.js @@ -9,13 +9,11 @@ export function login(data) { } // 获取子集列表 -export function getQaList(city_id) { +export function getQaList(params) { return request({ url: '/admin/qa/getQaList', method: 'get', - params: { - city_id - } + params: params }) } diff --git a/admin/src/router/index.js b/admin/src/router/index.js index ef638ee2..56f77af6 100644 --- a/admin/src/router/index.js +++ b/admin/src/router/index.js @@ -184,6 +184,15 @@ export const asyncRoutes = [ roles: ['order_index', 'editor'] }, children: [ + { + path: 'problem', + component: () => import('@/views/qa/problem.vue'), + name: 'problem', + meta: { + title: 'QA常见问题', + roles: ['admin'] + } + }, { path: 'qa', component: () => import('@/views/qa/qa.vue'), diff --git a/admin/src/views/qa/problem.vue b/admin/src/views/qa/problem.vue new file mode 100644 index 00000000..cd8531da --- /dev/null +++ b/admin/src/views/qa/problem.vue @@ -0,0 +1,137 @@ + + + + + \ No newline at end of file