no message
This commit is contained in:
parent
8ec2411c6b
commit
a3911e9454
@ -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()) {
|
||||
|
@ -76,7 +76,7 @@ export const constantRoutes = [
|
||||
children:[
|
||||
{
|
||||
path: '/resource_oilbank',
|
||||
name: 'homeindex',
|
||||
name: 'homeindex2',
|
||||
component: () => import('@/views/cashier/NewComponents/homeindex'),
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user