From 8f46ea0b3d50c403164179ff60243362c3a369f1 Mon Sep 17 00:00:00 2001 From: Xia Zekun Date: Tue, 4 Jun 2024 16:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E6=90=9C=E7=B4=A2=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit ed9eba4b7f8a1ed07dcf0bde9e4410da631a08fc) --- src/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 08074c6..efd59af 100644 --- a/src/main.js +++ b/src/main.js @@ -87,12 +87,14 @@ new Vue({ // }) console.log('store.dispatch(\'DingLogin\')') store.dispatch('DingLogin').then(() => { - console.log('跳转到搜索页') - new Vue().$router.push({ path: '/search/generalSearch' }) + console.log('DingLogin后 跳转到搜索页') + this.$router.push({ path: '/search/generalSearch' }) }).catch((e) => { Toast(e.message) }) } + console.log('跳转到搜索页') + this.$router.push({ path: '/search/generalSearch' }) }, render: h => h(App) }).$mount('#app')