Skip to content

Commit 4991890

Browse files
committed
style: format code for improved readability and consistency
1 parent 40609c6 commit 4991890

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
step-strictly
2424
/>
2525
<span class="ml-4">{{
26-
$t('views.applicationOverview.appInfo.LimitDialog.timesDays')
27-
}}</span>
26+
$t('views.applicationOverview.appInfo.LimitDialog.timesDays')
27+
}}</span>
2828
</el-form-item>
2929
<!-- 身份验证 -->
3030
<el-form-item
@@ -74,7 +74,7 @@
7474
style="margin: 0 4px 0 0 !important"
7575
>
7676
<el-icon>
77-
<RefreshRight />
77+
<RefreshRight/>
7878
</el-icon>
7979
</el-button>
8080
</el-tooltip>
@@ -111,7 +111,7 @@
111111
>
112112
<el-checkbox-group v-model="form.authentication_value.login_value">
113113
<template v-for="t in auth_list" :key="t.value">
114-
<el-checkbox :label="t.label" :value="t.value" />
114+
<el-checkbox :label="t.label" :value="t.value"/>
115115
</template>
116116
</el-checkbox-group>
117117
</el-form-item>
@@ -178,18 +178,18 @@
178178
</el-drawer>
179179
</template>
180180
<script setup lang="ts">
181-
import { ref, watch, computed } from 'vue'
182-
import { useRoute, useRouter } from 'vue-router'
183-
import type { FormInstance, FormRules } from 'element-plus'
184-
import { MsgSuccess } from '@/utils/message'
185-
import { t } from '@/locales'
186-
import { copyClick } from '@/utils/clipboard'
187-
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
181+
import {ref, watch, computed} from 'vue'
182+
import {useRoute, useRouter} from 'vue-router'
183+
import type {FormInstance, FormRules} from 'element-plus'
184+
import {MsgSuccess} from '@/utils/message'
185+
import {t} from '@/locales'
186+
import {copyClick} from '@/utils/clipboard'
187+
import {loadSharedApi} from '@/utils/dynamics-api/shared-api'
188188
189189
const router = useRouter()
190190
const route = useRoute()
191191
const {
192-
params: { id },
192+
params: {id},
193193
} = route
194194
195195
const apiType = computed(() => {
@@ -238,9 +238,12 @@ const open = (data: any) => {
238238
) {
239239
refreshAuthentication()
240240
}
241+
if (!form.value.authentication_value.max_attempts) {
242+
form.value.authentication_value.max_attempts = 1
243+
}
241244
form.value.authentication = data.authentication
242245
dialogVisible.value = true
243-
loadSharedApi({ type: 'application', systemType: apiType.value })
246+
loadSharedApi({type: 'application', systemType: apiType.value})
244247
.getChatUserAuthType()
245248
.then((ok: any) => {
246249
auth_list.value = ok.data
@@ -258,7 +261,7 @@ const submit = async (formEl: FormInstance | undefined) => {
258261
authentication: form.value.authentication,
259262
authentication_value: form.value.authentication_value,
260263
}
261-
loadSharedApi({ type: 'application', systemType: apiType.value })
264+
loadSharedApi({type: 'application', systemType: apiType.value})
262265
.putAccessToken(id as string, obj, loading)
263266
.then(() => {
264267
emit('refresh')
@@ -294,7 +297,7 @@ function firstGeneration() {
294297
}
295298
}
296299
297-
defineExpose({ open })
300+
defineExpose({open})
298301
</script>
299302
<style lang="scss" scoped>
300303
.authentication-append-input {

0 commit comments

Comments
 (0)