mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-11-26 12:33:38 +08:00
feat: 新增数据库监控页面
This commit is contained in:
@@ -10,9 +10,14 @@ const loading = ref(true);
|
||||
const currentRoute = useRoute();
|
||||
const frameSrc = ref<string>("");
|
||||
const frameRef = ref<HTMLElement | null>(null);
|
||||
const { VITE_APP_BASE_API } = import.meta.env;
|
||||
|
||||
if (unref(currentRoute.meta)?.frameSrc) {
|
||||
frameSrc.value = unref(currentRoute.meta)?.frameSrc as string;
|
||||
// 如果是内部链接的话, 需要加上后端服务器地址前缀
|
||||
if (unref(currentRoute.meta).isFrameSrcInternal) {
|
||||
frameSrc.value = `${VITE_APP_BASE_API}${frameSrc.value}`;
|
||||
}
|
||||
}
|
||||
unref(currentRoute.meta)?.frameLoading === false && hideLoading();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user