增加 swagger、druid、skywalking、admin 的自定义路径
parent
99f92310e2
commit
00a2818c01
@ -1,18 +1,30 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<doc-alert title="服务监控" url="https://doc.iocoder.cn/server-monitor/" />
|
<doc-alert title="服务监控" url="https://doc.iocoder.cn/server-monitor/" />
|
||||||
<i-frame :src="url" />
|
<i-frame v-if="!loading" :src="url" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import iFrame from "@/components/iFrame/index";
|
import iFrame from "@/components/iFrame/index";
|
||||||
|
import { getConfigKey } from "@/api/infra/config";
|
||||||
export default {
|
export default {
|
||||||
name: "Druid",
|
name: "Druid",
|
||||||
components: { iFrame },
|
components: { iFrame },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
url: process.env.VUE_APP_BASE_API + "/admin/applications"
|
url: process.env.VUE_APP_BASE_API + "/admin/applications",
|
||||||
|
loading: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
getConfigKey("url.spring-boot-admin").then(response => {
|
||||||
|
if (!response.data || response.data.length === 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.url = response.data;
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false;
|
||||||
|
})
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,19 +1,31 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<doc-alert title="接口文档" url="https://doc.iocoder.cn/api-doc/" />
|
<doc-alert title="接口文档" url="https://doc.iocoder.cn/api-doc/" />
|
||||||
<i-frame :src="url" />
|
<i-frame v-if="!loading" :src="url" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import iFrame from "@/components/iFrame/index";
|
import iFrame from "@/components/iFrame/index";
|
||||||
|
import { getConfigKey } from "@/api/infra/config";
|
||||||
export default {
|
export default {
|
||||||
name: "Druid",
|
name: "Druid",
|
||||||
components: { iFrame },
|
components: { iFrame },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// url: process.env.VUE_APP_BASE_API + "/doc.html"
|
url: process.env.VUE_APP_BASE_API + "/doc.html", // Knife4j UI
|
||||||
url: process.env.VUE_APP_BASE_API + "/swagger-ui"
|
// url: process.env.VUE_APP_BASE_API + "/swagger-ui", // Swagger UI
|
||||||
|
loading: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
getConfigKey("url.swagger").then(response => {
|
||||||
|
if (!response.data || response.data.length === 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.url = response.data;
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false;
|
||||||
|
})
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue