[update 单点登录] 测试飞书单点登录

This commit is contained in:
danshihao
2024-07-22 16:01:54 +08:00
parent 29d39511ef
commit 8143ca54a2
2 changed files with 5 additions and 6 deletions
-6
View File
@@ -92,12 +92,6 @@ function main () {
store.commit('TOGGLE_COLOR', Vue.ls.get(DEFAULT_COLOR, config.primaryColor))
store.commit('SET_TOKEN', Vue.ls.get(ACCESS_TOKEN))
store.commit('SET_MULTI_PAGE', Vue.ls.get(DEFAULT_MULTI_PAGE, config.multipage))
// 如果没有登录,state是飞书,并且有code,就请求飞书单点登录
if (!Vue.ls.get(ACCESS_TOKEN) && this.$route.query.code && this.$route.query.state === 'feishu') {
store.dispatch('FeiShuLogin').catch((e) => {
this.$message.warn(e.message)
})
}
},
render: h => h(App),
data: {