refactor: 优化样式

This commit is contained in:
wxg0103 2024-10-28 10:54:09 +08:00
parent 42791d4c63
commit 4b9253f525
3 changed files with 12 additions and 4 deletions

View File

@ -152,11 +152,11 @@ function validateConnection() {
const passwordFields = new Set(['app_secret', 'client_secret', 'secret'])
const isPasswordField = (key: any) => passwordFields.has(key)
const emit = defineEmits(['refresh'])
function saveConfig() {
platformApi.updateConfig(currentPlatform, loading).then((res: any) => {
MsgSuccess('保存成功')
emit('refresh')
visible.value = false
formRef.value?.clearValidate()
})

View File

@ -158,6 +158,7 @@ function formatFieldName(key?: any): string {
}
function getPlatformInfo() {
loading.value = true
platformApi.getPlatformInfo(loading).then((res: any) => {
if (res) {
platforms.forEach((platform) => {

View File

@ -1,5 +1,5 @@
<template>
<div id="wecom-qr" class="wecom-qr" style="margin-left: 60px"></div>
<div id="wecom-qr" class="wecom-qr" style="margin-left: 50px"></div>
</template>
<script lang="ts" setup>
@ -65,4 +65,11 @@ const init = async () => {
init()
</script>
<style scoped lang="scss"></style>
<style scoped lang="scss">
.wecom-qr {
margin-top: -40px;
}
:deep(.wwLogin_qrcode_head) {
padding: 0 !important;
}
</style>