提交 | 用户 | 时间
|
759b1c
|
1 |
<template> |
H |
2 |
<div> |
|
3 |
<i-frame v-if="!loading" :src="url" /> |
|
4 |
</div> |
|
5 |
</template> |
|
6 |
<script> |
|
7 |
import iFrame from "@/components/iFrame/index"; |
|
8 |
import { getConfigKey } from "@/api/infra/config"; |
|
9 |
export default { |
|
10 |
name: "InfraAdminServer", |
|
11 |
components: { iFrame }, |
|
12 |
data() { |
|
13 |
return { |
|
14 |
url: process.env.VUE_APP_BASE_API + "/admin/applications", |
|
15 |
loading: true |
|
16 |
}; |
|
17 |
}, |
|
18 |
created() { |
|
19 |
getConfigKey("url.spring-boot-admin").then(response => { |
|
20 |
if (!response.data || response.data.length === 0) { |
|
21 |
return |
|
22 |
} |
|
23 |
this.url = response.data; |
|
24 |
}).finally(() => { |
|
25 |
this.loading = false; |
|
26 |
}) |
|
27 |
} |
|
28 |
}; |
|
29 |
</script> |