From 8a3664a76c00276c610a9d9ff9712cb8174ec840 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Wed, 23 Aug 2023 11:47:26 +0800 Subject: [PATCH] =?UTF-8?q?token=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 10 +++++----- src/views/index/vehicleManage.vue | 6 ++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index a7733c5e..96109841 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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({ diff --git a/src/views/index/vehicleManage.vue b/src/views/index/vehicleManage.vue index b5b93cdb..8a2aac78 100644 --- a/src/views/index/vehicleManage.vue +++ b/src/views/index/vehicleManage.vue @@ -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:{