refactor: chat user auth ui
This commit is contained in:
parent
0260b40fa1
commit
8def4f3e4a
@ -38,7 +38,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-checkbox v-model="form.is_active"
|
<el-checkbox v-model="form.is_active"
|
||||||
>{{ $t('views.system.authentication.cas.enableAuthentication') }}
|
>{{ $t('views.system.authentication.cas.enableAuthentication') }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -53,11 +53,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, watch, onMounted } from 'vue'
|
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 type {FormInstance, FormRules} from 'element-plus'
|
||||||
import { t } from '@/locales'
|
import {t} from '@/locales'
|
||||||
import { MsgSuccess } from '@/utils/message'
|
import {MsgSuccess} from '@/utils/message'
|
||||||
|
|
||||||
const form = ref<any>({
|
const form = ref<any>({
|
||||||
id: '',
|
id: '',
|
||||||
|
|||||||
@ -79,7 +79,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, watch, onMounted } from 'vue'
|
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 type { FormInstance, FormRules } from 'element-plus'
|
||||||
import { t } from '@/locales'
|
import { t } from '@/locales'
|
||||||
import { MsgSuccess } from '@/utils/message'
|
import { MsgSuccess } from '@/utils/message'
|
||||||
|
|||||||
@ -100,7 +100,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, onMounted } from 'vue'
|
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 type { FormInstance, FormRules } from 'element-plus'
|
||||||
import { t } from '@/locales'
|
import { t } from '@/locales'
|
||||||
import { MsgSuccess } from '@/utils/message'
|
import { MsgSuccess } from '@/utils/message'
|
||||||
|
|||||||
@ -97,7 +97,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, watch, onMounted } from 'vue'
|
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 type { FormInstance, FormRules } from 'element-plus'
|
||||||
import { t } from '@/locales'
|
import { t } from '@/locales'
|
||||||
import { MsgSuccess } from '@/utils/message'
|
import { MsgSuccess } from '@/utils/message'
|
||||||
|
|||||||
@ -17,7 +17,7 @@ import { useRouter } from 'vue-router'
|
|||||||
import LDAP from './component/LDAP.vue'
|
import LDAP from './component/LDAP.vue'
|
||||||
import CAS from './component/CAS.vue'
|
import CAS from './component/CAS.vue'
|
||||||
import OIDC from './component/OIDC.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 OAuth2 from './component/OAuth2.vue'
|
||||||
import { t } from '@/locales'
|
import { t } from '@/locales'
|
||||||
import useStore from '@/stores'
|
import useStore from '@/stores'
|
||||||
@ -47,19 +47,19 @@ const tabList = [
|
|||||||
name: 'OAuth2',
|
name: 'OAuth2',
|
||||||
component: OAuth2,
|
component: OAuth2,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: t('views.system.authentication.scanTheQRCode.title'),
|
// label: t('views.system.authentication.scanTheQRCode.title'),
|
||||||
name: 'SCAN',
|
// name: 'SCAN',
|
||||||
component: SCAN,
|
// component: SCAN,
|
||||||
},
|
// },
|
||||||
]
|
]
|
||||||
|
|
||||||
function handleClick() {}
|
function handleClick() {}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (user.isExpire()) {
|
// if (user.isExpire()) {
|
||||||
router.push({ path: `/application` })
|
// router.push({ path: `/application` })
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user