You can not 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 repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

29 lines
597 B

<script lang="ts" setup>
import { onMounted, ref } from 'vue'
import { IFrame } from '@/components/IFrame'
import { getConfigKey } from '@/api/infra/config'
defineOptions({ name: 'InfraAdminServer' })
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>
<template>
<div>
<IFrame v-if="!loading" :src="src" />
</div>
</template>