31 lines
730 B
Vue
Raw Normal View History

2021-02-14 23:01:21 +08:00
<template>
<div>
<doc-alert title="服务监控" url="https://doc.iocoder.cn/server-monitor/" />
<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: "InfraAdminServer",
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 + "/admin/applications",
loading: true
2021-02-14 23:01:21 +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
};
</script>