token问题修复1
This commit is contained in:
@ -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({
|
||||
|
@ -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:{
|
||||
|
Reference in New Issue
Block a user