[update 飞书单点登录] 有token时无法单点登录
This commit is contained in:
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user