1 changed files with 18 additions and 3 deletions
@ -1,14 +1,29 @@ |
|||||||
<script lang="ts" setup> |
<script lang="ts" setup> |
||||||
import { ref } from 'vue' |
import { onMounted, ref } from 'vue' |
||||||
import { IFrame } from '@/components/IFrame' |
import { IFrame } from '@/components/IFrame' |
||||||
|
import { getConfigKey } from '@/api/infra/config' |
||||||
|
|
||||||
defineOptions({ name: 'InfraServer' }) |
defineOptions({ name: 'InfraAdminServer' }) |
||||||
|
|
||||||
const src = ref(`${import.meta.env.VITE_GLOB_BASE_URL}/admin/applications`) |
const src = ref(`${import.meta.env.VITE_GLOB_BASE_URL}/admin/applications`) |
||||||
|
|
||||||
|
const loading = ref(true) |
||||||
|
|
||||||
|
async function getInfo() { |
||||||
|
const res = await getConfigKey('url.spring-boot-admin') |
||||||
|
if (res && res.length !== 0) |
||||||
|
src.value = res |
||||||
|
|
||||||
|
loading.value = false |
||||||
|
} |
||||||
|
|
||||||
|
onMounted(() => { |
||||||
|
getInfo() |
||||||
|
}) |
||||||
</script> |
</script> |
||||||
|
|
||||||
<template> |
<template> |
||||||
<div> |
<div> |
||||||
<IFrame :src="src" /> |
<IFrame v-if="!loading" :src="src" /> |
||||||
</div> |
</div> |
||||||
</template> |
</template> |
||||||
|
Reference in new issue