@@ -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: [
@@ -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)