Browse Source

Merge branch 'xiaowang' into dev

feature
是小王呀\24601 1 year ago
parent
commit
0d40922ce4
  1. 2
      src/router/index.js

2
src/router/index.js

@ -108,7 +108,7 @@ router.beforeEach((to, from, next) => {
.replace(/}}/g, '"}}')
.replace(/"{/g, '{')
.replace(/:{"}/g, ':{}')
console.log(state)
state = JSON.stringify({ path: '/', query: {} });
let path = `${location.origin}${location.pathname === '/' ? '' : location.pathname}`
if (state && state != 'undefined') {
state = JSON.parse(state)

Loading…
Cancel
Save