33 lines
810 B
Vue
Raw Normal View History

2021-02-14 23:01:21 +08:00
<template>
<div>
<doc-alert title="数据库 MyBatis" url="https://doc.iocoder.cn/mybatis/" />
<doc-alert title="多数据源(读写分离)" url="https://doc.iocoder.cn/dynamic-datasource/" />
<i-frame v-if="!loading" :src="url" />
</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";
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 {
url: process.env.VUE_APP_BASE_API + "/druid/index.html",
loading: true
2021-02-14 23:01:21 +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>