[update 单点登录] 测试飞书单点登录
This commit is contained in:
@@ -92,6 +92,12 @@ 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: {
|
||||
|
||||
Reference in New Issue
Block a user