token问题修复1

This commit is contained in:
2023-08-23 11:47:26 +08:00
parent 5ab689430d
commit 8a3664a76c
2 changed files with 9 additions and 7 deletions

View File

@ -112,11 +112,11 @@ const routes = [
title:'司机新增或修改'
}
},
{
path: '/trainDocment',
name: 'trainDocment',
component:()=>import('@/views/docmentView')
}
// {
// path: '/trainDocment',
// name: 'trainDocment',
// component:()=>import('@/views/docmentView')
// }
]
const router = new VueRouter({

View File

@ -57,9 +57,11 @@ export default {
}
},
mounted() {
this.$toast('window.location', window.location)
const urlParams = new URLSearchParams(window.location.search);
const token = urlParams.get('token');
this.$toast("车辆管理打印token",token)
// const token = urlParams.get('token');
this.$toast("车辆管理打印token", JSON.stringify(urlParams))
this.getVehicleList();
},
methods:{