refactor:基于 lint 处理排版

This commit is contained in:
YunaiV
2025-04-22 22:10:33 +08:00
parent 3fe36fd823
commit fb785894b6
322 changed files with 4781 additions and 2093 deletions

View File

@@ -1,31 +1,35 @@
<script lang="ts" setup>
import { Page } from '@vben/common-ui'
import { DocAlert } from '#/components/doc-alert'
import { IFrame } from '#/components/iframe'
import { onMounted, ref } from 'vue';
import { ref, onMounted } from 'vue'
import { getConfigKey } from '#/api/infra/config'
import { Page } from '@vben/common-ui';
const loading = ref(true) // 是否加载中
const src = ref(import.meta.env.VITE_BASE_URL + '/druid/index.html')
import { getConfigKey } from '#/api/infra/config';
import { DocAlert } from '#/components/doc-alert';
import { IFrame } from '#/components/iframe';
const loading = ref(true); // 是否加载中
const src = ref(`${import.meta.env.VITE_BASE_URL}/druid/index.html`);
/** 初始化 */
onMounted(async () => {
try {
const data = await getConfigKey('url.druid')
const data = await getConfigKey('url.druid');
if (data && data.length > 0) {
src.value = data
src.value = data;
}
} finally {
loading.value = false
loading.value = false;
}
})
});
</script>
<template>
<Page auto-content-height>
<DocAlert title="数据库 MyBatis" url="https://doc.iocoder.cn/mybatis/" />
<DocAlert title="多数据源(读写分离)" url="https://doc.iocoder.cn/dynamic-datasource/" />
<DocAlert
title="多数据源(读写分离)"
url="https://doc.iocoder.cn/dynamic-datasource/"
/>
<IFrame v-if="!loading" v-loading="loading" :src="src" />
</Page>