style: format code for improved readability and consistency
parent
40609c6531
commit
4991890739
|
|
@ -23,8 +23,8 @@
|
||||||
step-strictly
|
step-strictly
|
||||||
/>
|
/>
|
||||||
<span class="ml-4">{{
|
<span class="ml-4">{{
|
||||||
$t('views.applicationOverview.appInfo.LimitDialog.timesDays')
|
$t('views.applicationOverview.appInfo.LimitDialog.timesDays')
|
||||||
}}</span>
|
}}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 身份验证 -->
|
<!-- 身份验证 -->
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
style="margin: 0 4px 0 0 !important"
|
style="margin: 0 4px 0 0 !important"
|
||||||
>
|
>
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<RefreshRight />
|
<RefreshRight/>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
|
@ -111,7 +111,7 @@
|
||||||
>
|
>
|
||||||
<el-checkbox-group v-model="form.authentication_value.login_value">
|
<el-checkbox-group v-model="form.authentication_value.login_value">
|
||||||
<template v-for="t in auth_list" :key="t.value">
|
<template v-for="t in auth_list" :key="t.value">
|
||||||
<el-checkbox :label="t.label" :value="t.value" />
|
<el-checkbox :label="t.label" :value="t.value"/>
|
||||||
</template>
|
</template>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -178,18 +178,18 @@
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, watch, computed } from 'vue'
|
import {ref, watch, computed} from 'vue'
|
||||||
import { useRoute, useRouter } from 'vue-router'
|
import {useRoute, useRouter} from 'vue-router'
|
||||||
import type { FormInstance, FormRules } from 'element-plus'
|
import type {FormInstance, FormRules} from 'element-plus'
|
||||||
import { MsgSuccess } from '@/utils/message'
|
import {MsgSuccess} from '@/utils/message'
|
||||||
import { t } from '@/locales'
|
import {t} from '@/locales'
|
||||||
import { copyClick } from '@/utils/clipboard'
|
import {copyClick} from '@/utils/clipboard'
|
||||||
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
|
import {loadSharedApi} from '@/utils/dynamics-api/shared-api'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const {
|
const {
|
||||||
params: { id },
|
params: {id},
|
||||||
} = route
|
} = route
|
||||||
|
|
||||||
const apiType = computed(() => {
|
const apiType = computed(() => {
|
||||||
|
|
@ -238,9 +238,12 @@ const open = (data: any) => {
|
||||||
) {
|
) {
|
||||||
refreshAuthentication()
|
refreshAuthentication()
|
||||||
}
|
}
|
||||||
|
if (!form.value.authentication_value.max_attempts) {
|
||||||
|
form.value.authentication_value.max_attempts = 1
|
||||||
|
}
|
||||||
form.value.authentication = data.authentication
|
form.value.authentication = data.authentication
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
loadSharedApi({ type: 'application', systemType: apiType.value })
|
loadSharedApi({type: 'application', systemType: apiType.value})
|
||||||
.getChatUserAuthType()
|
.getChatUserAuthType()
|
||||||
.then((ok: any) => {
|
.then((ok: any) => {
|
||||||
auth_list.value = ok.data
|
auth_list.value = ok.data
|
||||||
|
|
@ -258,7 +261,7 @@ const submit = async (formEl: FormInstance | undefined) => {
|
||||||
authentication: form.value.authentication,
|
authentication: form.value.authentication,
|
||||||
authentication_value: form.value.authentication_value,
|
authentication_value: form.value.authentication_value,
|
||||||
}
|
}
|
||||||
loadSharedApi({ type: 'application', systemType: apiType.value })
|
loadSharedApi({type: 'application', systemType: apiType.value})
|
||||||
.putAccessToken(id as string, obj, loading)
|
.putAccessToken(id as string, obj, loading)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
emit('refresh')
|
emit('refresh')
|
||||||
|
|
@ -294,7 +297,7 @@ function firstGeneration() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({ open })
|
defineExpose({open})
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.authentication-append-input {
|
.authentication-append-input {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue