refactor: chat user auth ui

This commit is contained in:
wxg0103 2025-06-13 14:08:19 +08:00
parent 0260b40fa1
commit 8def4f3e4a
5 changed files with 18 additions and 18 deletions

View File

@ -38,7 +38,7 @@
</el-form-item>
<el-form-item>
<el-checkbox v-model="form.is_active"
>{{ $t('views.system.authentication.cas.enableAuthentication') }}
>{{ $t('views.system.authentication.cas.enableAuthentication') }}
</el-checkbox>
</el-form-item>
</el-form>
@ -53,11 +53,11 @@
</div>
</template>
<script setup lang="ts">
import { reactive, ref, watch, onMounted } from 'vue'
import authApi from '@/api/system/auth'
import type { FormInstance, FormRules } from 'element-plus'
import { t } from '@/locales'
import { MsgSuccess } from '@/utils/message'
import {reactive, ref, watch, onMounted} from 'vue'
import authApi from '@/api/chat-user/auth-setting'
import type {FormInstance, FormRules} from 'element-plus'
import {t} from '@/locales'
import {MsgSuccess} from '@/utils/message'
const form = ref<any>({
id: '',

View File

@ -79,7 +79,7 @@
</template>
<script setup lang="ts">
import { reactive, ref, watch, onMounted } from 'vue'
import authApi from '@/api/system/auth'
import authApi from '@/api/chat-user/auth-setting'
import type { FormInstance, FormRules } from 'element-plus'
import { t } from '@/locales'
import { MsgSuccess } from '@/utils/message'

View File

@ -100,7 +100,7 @@
</template>
<script setup lang="ts">
import { reactive, ref, onMounted } from 'vue'
import authApi from '@/api/system/auth'
import authApi from '@/api/chat-user/auth-setting'
import type { FormInstance, FormRules } from 'element-plus'
import { t } from '@/locales'
import { MsgSuccess } from '@/utils/message'

View File

@ -97,7 +97,7 @@
</template>
<script setup lang="ts">
import { reactive, ref, watch, onMounted } from 'vue'
import authApi from '@/api/system/auth'
import authApi from '@/api/chat-user/auth-setting'
import type { FormInstance, FormRules } from 'element-plus'
import { t } from '@/locales'
import { MsgSuccess } from '@/utils/message'

View File

@ -17,7 +17,7 @@ import { useRouter } from 'vue-router'
import LDAP from './component/LDAP.vue'
import CAS from './component/CAS.vue'
import OIDC from './component/OIDC.vue'
import SCAN from './component/SCAN.vue'
//import SCAN from './component/SCAN.vue'
import OAuth2 from './component/OAuth2.vue'
import { t } from '@/locales'
import useStore from '@/stores'
@ -47,19 +47,19 @@ const tabList = [
name: 'OAuth2',
component: OAuth2,
},
{
label: t('views.system.authentication.scanTheQRCode.title'),
name: 'SCAN',
component: SCAN,
},
// {
// label: t('views.system.authentication.scanTheQRCode.title'),
// name: 'SCAN',
// component: SCAN,
// },
]
function handleClick() {}
onMounted(() => {
if (user.isExpire()) {
router.push({ path: `/application` })
}
// if (user.isExpire()) {
// router.push({ path: `/application` })
// }
})
</script>
<style lang="scss" scoped>