From 196be50eaa56757cf60347673ec3662fd7bf0313 Mon Sep 17 00:00:00 2001 From: Sliverber <2622874537@qq.com> Date: Sun, 28 Jul 2024 14:23:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=90=A5=E5=8C=BA=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/router/index.js | 2 +- src/views/system/area/areaSet.vue | 323 ++++++++++++++++++++++-------- src/views/system/area/index.vue | 11 +- 4 files changed, 249 insertions(+), 91 deletions(-) diff --git a/.env.development b/.env.development index 0346afc..e3478dc 100644 --- a/.env.development +++ b/.env.development @@ -5,8 +5,8 @@ VUE_APP_TITLE = 共享电动车管理系统 ENV = 'development' # 共享电动车管理系统/开发环境 -# VUE_APP_BASE_API = 'https://dche.ccttiot.com/prod-api' -VUE_APP_BASE_API = 'http://192.168.2.189:8080' +VUE_APP_BASE_API = 'https://dche.ccttiot.com/prod-api' +# VUE_APP_BASE_API = 'http://192.168.2.189:8080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/router/index.js b/src/router/index.js index 26e448a..4e36bcf 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -225,7 +225,7 @@ export const dynamicRoutes = [ permissions: ['system:parking:list'], children: [ { - path: 'index/:areaId(\\d+)', + path: 'index/:areaId(\\d+)?', // 将参数设置为可选 component: () => import('@/views/system/area/areaSet'), name: 'Data', meta: { title: '运营区设置', activeMenu: '/system/areaSet' } diff --git a/src/views/system/area/areaSet.vue b/src/views/system/area/areaSet.vue index a2c73ac..4ddae04 100644 --- a/src/views/system/area/areaSet.vue +++ b/src/views/system/area/areaSet.vue @@ -1,6 +1,9 @@