From a3911e94541899b0cd5b85c36cd7ab663c4cb4ed Mon Sep 17 00:00:00 2001 From: "DESKTOP-369JRHT\\12997" <9> Date: Tue, 30 Jul 2024 16:04:44 +0800 Subject: [PATCH] no message --- fuintCashierWeb/src/permission.js | 5 ++++- fuintCashierWeb/src/router/index.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fuintCashierWeb/src/permission.js b/fuintCashierWeb/src/permission.js index 33c084b77..e033ff3b9 100644 --- a/fuintCashierWeb/src/permission.js +++ b/fuintCashierWeb/src/permission.js @@ -24,12 +24,15 @@ router.beforeEach((to, from, next) => { // setToken(data); // } // } + console.log("111111111111111111111oil",getToken()) if (to.path === '/resource_oilbank') { console.log("111111111111111111111oil") const urlParams = new URLSearchParams(window.location.search); const data = urlParams.get('token'); - setToken(data); + if (data) { + setToken(data); + } } if (getToken()) { diff --git a/fuintCashierWeb/src/router/index.js b/fuintCashierWeb/src/router/index.js index 65d329e36..923467349 100644 --- a/fuintCashierWeb/src/router/index.js +++ b/fuintCashierWeb/src/router/index.js @@ -76,7 +76,7 @@ export const constantRoutes = [ children:[ { path: '/resource_oilbank', - name: 'homeindex', + name: 'homeindex2', component: () => import('@/views/cashier/NewComponents/homeindex'), }, {