no message

This commit is contained in:
DESKTOP-369JRHT\12997 2024-07-30 16:04:44 +08:00
parent 8ec2411c6b
commit a3911e9454
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -76,7 +76,7 @@ export const constantRoutes = [
children:[
{
path: '/resource_oilbank',
name: 'homeindex',
name: 'homeindex2',
component: () => import('@/views/cashier/NewComponents/homeindex'),
},
{