From cb58815b1e8f7f198925919461bdee31026f1d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Mon, 8 Jul 2024 16:42:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E7=99=BD=E9=A1=B5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index a972170..0f1b54d 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)