直接跳转搜索页

(cherry picked from commit 026b79be04f9f21cadcf93241def8580e4669150)
This commit is contained in:
Xia Zekun
2024-09-06 17:25:25 +08:00
committed by mzaxd
parent e64f25ba1a
commit ee09baf2ac
2 changed files with 7 additions and 8 deletions
+7 -4
View File
@@ -82,11 +82,14 @@ new Vue({
console.log(' 非钉钉平台 不进行钉钉单点登录')
return
}
this.$router.push({ path: '/search/generalSearch' }).catch((res) => {
console.log(res)
})
// this.$router.push({ path: '/search/generalSearch' }).catch((res) => {
// console.log(res)
// })
console.log('store.dispatch(\'DingLogin\')')
store.dispatch('DingLogin').then().catch((e) => {
store.dispatch('DingLogin').then(() => {
console.log('跳转到搜索页')
new Vue().$router.push({ path: '/search/generalSearch' })
}).catch((e) => {
Toast(e.message)
})
}
-4
View File
@@ -178,10 +178,6 @@ const user = {
commit('SET_INFO', userInfo)
commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() })
commit('SET_AVATAR', userInfo.avatar)
// 跳转
new Vue().$router.push({ path: '/search/generalSearch' }).catch((res) => {
console.log(res)
})
resolve(response)
} else {
reject(response)