You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< doc -alert title = "服务监控" url = "https://doc.iocoder.cn/server-monitor/" / >
< ContentWrap >
< IFrame v -if = " ! loading " v -loading = " loading " :src ="src" / >
< / ContentWrap >
< / template >
< script lang = "ts" setup >
import * as ConfigApi from '@/api/infra/config'
defineOptions ( { name : 'InfraAdminServer' } )
const loading = ref ( true ) // 是否加载中
const src = ref ( import . meta . env . VITE _BASE _URL + '/admin/applications' )
/** 初始化 */
onMounted ( async ( ) => {
try {
// 友情提示:如果访问出现 404 问题:
// 1) boot 参考 https://doc.iocoder.cn/server-monitor/ 解决;
// 2) cloud 参考 https://cloud.iocoder.cn/server-monitor/ 解决
const data = await ConfigApi . getConfigKey ( 'url.spring-boot-admin' )
if ( data && data . length > 0 ) {
src . value = data
}
} finally {
loading . value = false
}
} )
< / script >