邓洁: 隧道接口部分对接
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createRouter, createWebHashHistory } from 'vue-router';
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
import NProgress from 'nprogress'//进度条
|
||||
import 'nprogress/nprogress.css'
|
||||
import { getToken } from '../utils/auth'
|
||||
@@ -24,7 +24,7 @@ const routes = [
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/edit',
|
||||
path: '/edit/:tunnelId(\\d+)',
|
||||
name: 'tunneledit',
|
||||
component: () => import('@/views/edit/edit.vue'),
|
||||
meta: {
|
||||
@@ -80,7 +80,7 @@ const routes = [
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
});
|
||||
router.beforeEach((to, form, next) => {
|
||||
|
||||
Reference in New Issue
Block a user