no message
This commit is contained in:
parent
8ec2411c6b
commit
a3911e9454
@ -24,13 +24,16 @@ router.beforeEach((to, from, next) => {
|
|||||||
// setToken(data);
|
// setToken(data);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
console.log("111111111111111111111oil",getToken())
|
||||||
|
|
||||||
if (to.path === '/resource_oilbank') {
|
if (to.path === '/resource_oilbank') {
|
||||||
console.log("111111111111111111111oil")
|
console.log("111111111111111111111oil")
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const data = urlParams.get('token');
|
const data = urlParams.get('token');
|
||||||
|
if (data) {
|
||||||
setToken(data);
|
setToken(data);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (getToken()) {
|
if (getToken()) {
|
||||||
to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
|
to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
|
||||||
|
@ -76,7 +76,7 @@ export const constantRoutes = [
|
|||||||
children:[
|
children:[
|
||||||
{
|
{
|
||||||
path: '/resource_oilbank',
|
path: '/resource_oilbank',
|
||||||
name: 'homeindex',
|
name: 'homeindex2',
|
||||||
component: () => import('@/views/cashier/NewComponents/homeindex'),
|
component: () => import('@/views/cashier/NewComponents/homeindex'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user