index.vue 719 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div>
  3. <doc-alert title="服务监控" url="https://doc.iocoder.cn/server-monitor/" />
  4. <i-frame v-if="!loading" :src="url" />
  5. </div>
  6. </template>
  7. <script>
  8. import iFrame from "@/components/iFrame/index";
  9. import { getConfigKey } from "@/api/infra/config";
  10. export default {
  11. name: "Druid",
  12. components: { iFrame },
  13. data() {
  14. return {
  15. url: process.env.VUE_APP_BASE_API + "/admin/applications",
  16. loading: true
  17. };
  18. },
  19. created() {
  20. getConfigKey("url.spring-boot-admin").then(response => {
  21. if (!response.data || response.data.length === 0) {
  22. return
  23. }
  24. this.url = response.data;
  25. }).finally(() => {
  26. this.loading = false;
  27. })
  28. }
  29. };
  30. </script>