From c804dddb7d0aec9212aa49437f1a118ef18e7630 Mon Sep 17 00:00:00 2001 From: xingyu Date: Sun, 15 Oct 2023 19:49:38 +0800 Subject: [PATCH] fix: route --- .vscode/settings.json | 1 + src/router/routes/index.ts | 4 ++-- src/views/pay/demo/index.vue | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 5487498a..6d6f35cb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -150,6 +150,7 @@ "sider", "sortablejs", "stylelint", + "svgs", "tailwind", "tailwindcss", "tinymce", diff --git a/src/router/routes/index.ts b/src/router/routes/index.ts index 2575fabd..1a303f8c 100644 --- a/src/router/routes/index.ts +++ b/src/router/routes/index.ts @@ -134,9 +134,9 @@ export const JobLogRoute: AppRouteRecordRaw = { } export const PayRoute: AppRouteRecordRaw = { - path: '/cashRegister', + path: '/pay', component: LAYOUT, - name: 'cashRegister', + name: 'pay', meta: { title: '收银台', hidden: true, diff --git a/src/views/pay/demo/index.vue b/src/views/pay/demo/index.vue index cb0dcd34..47e530c3 100644 --- a/src/views/pay/demo/index.vue +++ b/src/views/pay/demo/index.vue @@ -38,7 +38,7 @@ function handleAdd() { /** 支付按钮操作 */ function handlePay(record: Recordable) { - go(`/cashRegister/submit?id=${record.id}`) + go(`/pay/cashier?id=${record.id}`) } /** 退款按钮操作 */