mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 16:32:43 +08:00
27 lines
719 B
Vue
27 lines
719 B
Vue
<template>
|
|
<doc-alert title="数据库 MyBatis" url="https://doc.iocoder.cn/mybatis/" />
|
|
<doc-alert title="多数据源(读写分离)" url="https://doc.iocoder.cn/dynamic-datasource/" />
|
|
|
|
<ContentWrap>
|
|
<IFrame v-if="!loading" :src="url" />
|
|
</ContentWrap>
|
|
</template>
|
|
<script setup lang="ts" name="InfraDruid">
|
|
import * as ConfigApi from '@/api/infra/config'
|
|
|
|
const loading = ref(true) // 是否加载中
|
|
const url = ref(import.meta.env.VITE_BASE_URL + '/druid/index.html')
|
|
|
|
/** 初始化 */
|
|
onMounted(async () => {
|
|
try {
|
|
const data = await ConfigApi.getConfigKey('url.druid')
|
|
if (data && data.length > 0) {
|
|
url.value = data
|
|
}
|
|
} finally {
|
|
loading.value = false
|
|
}
|
|
})
|
|
</script>
|