Skip to content

Commit 4b9253f

Browse files
committed
refactor: 优化样式
1 parent 42791d4 commit 4b9253f

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

ui/src/views/authentication/component/EditModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ function validateConnection() {
152152
const passwordFields = new Set(['app_secret', 'client_secret', 'secret'])
153153
154154
const isPasswordField = (key: any) => passwordFields.has(key)
155-
155+
const emit = defineEmits(['refresh'])
156156
function saveConfig() {
157157
platformApi.updateConfig(currentPlatform, loading).then((res: any) => {
158158
MsgSuccess('保存成功')
159-
159+
emit('refresh')
160160
visible.value = false
161161
formRef.value?.clearValidate()
162162
})

ui/src/views/authentication/component/SCAN.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ function formatFieldName(key?: any): string {
158158
}
159159
160160
function getPlatformInfo() {
161+
loading.value = true
161162
platformApi.getPlatformInfo(loading).then((res: any) => {
162163
if (res) {
163164
platforms.forEach((platform) => {

ui/src/views/login/components/wecomQrCode.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div id="wecom-qr" class="wecom-qr" style="margin-left: 60px"></div>
2+
<div id="wecom-qr" class="wecom-qr" style="margin-left: 50px"></div>
33
</template>
44

55
<script lang="ts" setup>
@@ -65,4 +65,11 @@ const init = async () => {
6565
init()
6666
</script>
6767

68-
<style scoped lang="scss"></style>
68+
<style scoped lang="scss">
69+
.wecom-qr {
70+
margin-top: -40px;
71+
}
72+
:deep(.wwLogin_qrcode_head) {
73+
padding: 0 !important;
74+
}
75+
</style>

0 commit comments

Comments
 (0)