Skip to content

Commit 8def4f3

Browse files
committed
refactor: chat user auth ui
1 parent 0260b40 commit 8def4f3

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

ui/src/views/system-chat-user/authentication/component/CAS.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</el-form-item>
3939
<el-form-item>
4040
<el-checkbox v-model="form.is_active"
41-
>{{ $t('views.system.authentication.cas.enableAuthentication') }}
41+
>{{ $t('views.system.authentication.cas.enableAuthentication') }}
4242
</el-checkbox>
4343
</el-form-item>
4444
</el-form>
@@ -53,11 +53,11 @@
5353
</div>
5454
</template>
5555
<script setup lang="ts">
56-
import { reactive, ref, watch, onMounted } from 'vue'
57-
import authApi from '@/api/system/auth'
58-
import type { FormInstance, FormRules } from 'element-plus'
59-
import { t } from '@/locales'
60-
import { MsgSuccess } from '@/utils/message'
56+
import {reactive, ref, watch, onMounted} from 'vue'
57+
import authApi from '@/api/chat-user/auth-setting'
58+
import type {FormInstance, FormRules} from 'element-plus'
59+
import {t} from '@/locales'
60+
import {MsgSuccess} from '@/utils/message'
6161
6262
const form = ref<any>({
6363
id: '',

ui/src/views/system-chat-user/authentication/component/LDAP.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</template>
8080
<script setup lang="ts">
8181
import { reactive, ref, watch, onMounted } from 'vue'
82-
import authApi from '@/api/system/auth'
82+
import authApi from '@/api/chat-user/auth-setting'
8383
import type { FormInstance, FormRules } from 'element-plus'
8484
import { t } from '@/locales'
8585
import { MsgSuccess } from '@/utils/message'

ui/src/views/system-chat-user/authentication/component/OAuth2.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
</template>
101101
<script setup lang="ts">
102102
import { reactive, ref, onMounted } from 'vue'
103-
import authApi from '@/api/system/auth'
103+
import authApi from '@/api/chat-user/auth-setting'
104104
import type { FormInstance, FormRules } from 'element-plus'
105105
import { t } from '@/locales'
106106
import { MsgSuccess } from '@/utils/message'

ui/src/views/system-chat-user/authentication/component/OIDC.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
</template>
9898
<script setup lang="ts">
9999
import { reactive, ref, watch, onMounted } from 'vue'
100-
import authApi from '@/api/system/auth'
100+
import authApi from '@/api/chat-user/auth-setting'
101101
import type { FormInstance, FormRules } from 'element-plus'
102102
import { t } from '@/locales'
103103
import { MsgSuccess } from '@/utils/message'

ui/src/views/system-chat-user/authentication/index.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { useRouter } from 'vue-router'
1717
import LDAP from './component/LDAP.vue'
1818
import CAS from './component/CAS.vue'
1919
import OIDC from './component/OIDC.vue'
20-
import SCAN from './component/SCAN.vue'
20+
//import SCAN from './component/SCAN.vue'
2121
import OAuth2 from './component/OAuth2.vue'
2222
import { t } from '@/locales'
2323
import useStore from '@/stores'
@@ -47,19 +47,19 @@ const tabList = [
4747
name: 'OAuth2',
4848
component: OAuth2,
4949
},
50-
{
51-
label: t('views.system.authentication.scanTheQRCode.title'),
52-
name: 'SCAN',
53-
component: SCAN,
54-
},
50+
// {
51+
// label: t('views.system.authentication.scanTheQRCode.title'),
52+
// name: 'SCAN',
53+
// component: SCAN,
54+
// },
5555
]
5656
5757
function handleClick() {}
5858
5959
onMounted(() => {
60-
if (user.isExpire()) {
61-
router.push({ path: `/application` })
62-
}
60+
// if (user.isExpire()) {
61+
// router.push({ path: `/application` })
62+
// }
6363
})
6464
</script>
6565
<style lang="scss" scoped>

0 commit comments

Comments
 (0)