ShiShiYiBan/yudao-ui-admin/src/views/infra/skywalking/index.vue

31 lines
705 B
Vue
Raw Normal View History

2021-02-20 17:49:42 +08:00
<template>
<div>
<doc-alert title="服务监控" url="https://doc.iocoder.cn/server-monitor/" />
<i-frame v-if="!loading" :src="url" />
</div>
2021-02-20 17:49:42 +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-20 17:49:42 +08:00
export default {
name: "InfraSkyWalking",
2022-02-15 22:24:48 +08:00
components: { iFrame },
2021-02-20 17:49:42 +08:00
data() {
return {
url: "http://skywalking.shop.iocoder.cn",
loading: true
2021-02-20 17:49:42 +08:00
};
},
created() {
getConfigKey("url.skywalking").then(response => {
if (!response.data || response.data.length === 0) {
return
}
this.url = response.data;
}).finally(() => {
this.loading = false;
})
}
2021-02-20 17:49:42 +08:00
};
</script>