2021-02-14 23:01:21 +08:00
|
|
|
<template>
|
2022-04-17 13:58:01 +08:00
|
|
|
<div>
|
|
|
|
<doc-alert title="服务监控" url="https://doc.iocoder.cn/server-monitor/" />
|
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 {
|
2022-02-15 22:24:48 +08:00
|
|
|
name: "Druid",
|
|
|
|
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 + "/admin/applications",
|
|
|
|
loading: true
|
2021-02-14 23:01:21 +08:00
|
|
|
};
|
|
|
|
},
|
2023-04-07 23:25:43 +08:00
|
|
|
created() {
|
|
|
|
getConfigKey("url.spring-boot-admin").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
|
|
|
};
|
2021-02-20 16:17:26 +08:00
|
|
|
</script>
|