2021-02-14 23:01:21 +08:00
|
|
|
<template>
|
2022-04-17 13:58:01 +08:00
|
|
|
<div>
|
|
|
|
<doc-alert title="数据库 MyBatis" url="https://doc.iocoder.cn/mybatis/" />
|
|
|
|
<doc-alert title="多数据源(读写分离)" url="https://doc.iocoder.cn/dynamic-datasource/" />
|
2023-04-07 23:25:43 +08:00
|
|
|
|
|
|
|
<i-frame v-if="!loading" :src="url" />
|
2022-04-17 13:58:01 +08:00
|
|
|
</div>
|
2021-02-14 23:01:21 +08:00
|
|
|
</template>
|
|
|
|
<script>
|
2022-02-15 22:24:48 +08:00
|
|
|
import iFrame from "@/components/iFrame/index";
|
2023-04-07 23:25:43 +08:00
|
|
|
import { getConfigKey } from "@/api/infra/config";
|
2021-02-14 23:01:21 +08:00
|
|
|
export default {
|
|
|
|
name: "Druid",
|
2022-02-15 22:24:48 +08:00
|
|
|
components: { iFrame },
|
2021-02-14 23:01:21 +08:00
|
|
|
data() {
|
|
|
|
return {
|
2023-04-07 23:25:43 +08:00
|
|
|
url: process.env.VUE_APP_BASE_API + "/druid/index.html",
|
|
|
|
loading: true
|
2021-02-14 23:01:21 +08:00
|
|
|
};
|
|
|
|
},
|
2023-04-07 23:25:43 +08:00
|
|
|
created() {
|
|
|
|
getConfigKey("url.druid").then(response => {
|
|
|
|
if (!response.data || response.data.length === 0) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
this.url = response.data;
|
|
|
|
}).finally(() => {
|
|
|
|
this.loading = false;
|
|
|
|
})
|
|
|
|
}
|
2021-02-14 23:01:21 +08:00
|
|
|
};
|
|
|
|
</script>
|