邓洁: 隧道接口部分对接

This commit is contained in:
邓洁
2023-12-26 09:41:44 +08:00
parent 9afb0f7f28
commit b1fde92bbd
5 changed files with 122 additions and 51 deletions

View File

@@ -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) => {