diff --git a/src/router/index.js b/src/router/index.js index 0ed9c2a..39496af 100644 --- a/src/router/index.js +++ b/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)