Browse Source

淮海配置

lighter 4 months ago
parent
commit
cb105a5ca7
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/router/index.js
  2. 1 1
      src/views/Home.vue

+ 2 - 2
src/router/index.js

@@ -4,11 +4,11 @@ export const constantRoutes = [
   {
     path: '/',
     redirect: {
-      path: '/wxService',
+      path: '/wxservice',
     },
   },
   {
-    path: '/wxService/:code?/:to?',
+    path: '/wxservice/:code?/:to?',
     component: () => import('../views/Home.vue'),
     meta: { title: '医疗服务' },
     children: [

+ 1 - 1
src/views/Home.vue

@@ -20,7 +20,7 @@ const executeNavigate = () => {
   if (!to) {
     to = 'hospitalService'
   }
-  if (router.currentRoute.value.path.startsWith('/wxService')) {
+  if (router.currentRoute.value.path.startsWith('/wxservice')) {
     let pathInfo = to.split('_')
     if (pathInfo.length === 1) {
       router.push('/' + to)