[update 飞书单点登录] 有token时无法单点登录

This commit is contained in:
danshihao
2024-07-24 16:50:46 +08:00
parent 0266f7a301
commit 469c1c4d92
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -981,6 +981,7 @@
@-moz-document url-prefix() {
/deep/ .ant-table-fixed-header .ant-table-scroll .ant-table-header {
margin-bottom: 0px !important;
padding-bottom: 0 !important;
overflow-x: hidden !important;
}
}
+1 -1
View File
@@ -35,7 +35,7 @@ router.beforeEach(async (to, from, next) => {
store.commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() })
store.commit('SET_AVATAR', userInfo.avatar)
}
} else if (!Vue.ls.get(ACCESS_TOKEN) && to.query.code && to.query.state === 'feishu') {
} else if (to.query.code && to.query.state === 'feishu') {
// 如果没有登录,state是飞书,并且有code,就请求飞书单点登录
await store.dispatch('FeiShuLogin', to.query.code).catch((e) => {
this.$message.warn(e.message)
@@ -36,7 +36,7 @@
</a-form>
</div>
<div class="table-operator" v-if="dataSource.length < 6" v-has="'sys:friendshipLink:add'">
<div class="table-operator" v-has="'sys:friendshipLink:add'">
<!-- 新增 -->
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
</div>