增加 swagger、druid、skywalking、admin 的自定义路径

This commit is contained in:
YunaiV
2023-04-07 23:25:43 +08:00
parent 70a10b26d2
commit 04c3cdf372
7 changed files with 62 additions and 181 deletions

View File

@@ -1,18 +1,30 @@
<template>
<div>
<doc-alert title="服务监控" url="https://doc.iocoder.cn/server-monitor/" />
<i-frame :src="url" />
<i-frame v-if="!loading" :src="url" />
</div>
</template>
<script>
import iFrame from "@/components/iFrame/index";
import { getConfigKey } from "@/api/infra/config";
export default {
name: "Druid",
components: { iFrame },
data() {
return {
url: "http://skywalking.shop.iocoder.cn", // TODO 芋艿,后续改成配置读取
url: "http://skywalking.shop.iocoder.cn",
loading: true
};
},
created() {
getConfigKey("url.skywalking").then(response => {
if (!response.data || response.data.length === 0) {
return
}
this.url = response.data;
}).finally(() => {
this.loading = false;
})
}
};
</script>