Compare commits
No commits in common. '479a0d5580bcbc66bd6c86e2ac33c5b6f53cf569' and '99ed1be27102368dd3ca6f3dfcbccf7068bb2cad' have entirely different histories.
479a0d5580
...
99ed1be271
@ -1,5 +0,0 @@ |
|||||||
{ |
|
||||||
"i18n-ally.localesPaths": [ |
|
||||||
"src/locales" |
|
||||||
] |
|
||||||
} |
|
@ -1,24 +0,0 @@ |
|||||||
<template> |
|
||||||
<IFrame :src="src" /> |
|
||||||
</template> |
|
||||||
<script lang="ts" setup> |
|
||||||
import * as ConfigApi from '@/api/infra/config' |
|
||||||
|
|
||||||
defineOptions({ name: 'InfraSwagger' }) |
|
||||||
|
|
||||||
const loading = ref(true) // 是否加载中 |
|
||||||
const src = ref(import.meta.env.VITE_BASE_URL + '/doc.html') // Knife4j UI |
|
||||||
// const src = ref(import.meta.env.VITE_BASE_URL + '/swagger-ui') // Swagger UI |
|
||||||
|
|
||||||
/** 初始化 */ |
|
||||||
onMounted(async () => { |
|
||||||
try { |
|
||||||
const data = await ConfigApi.getConfigKey('url.swagger') |
|
||||||
if (data && data.length > 0) { |
|
||||||
src.value = data |
|
||||||
} |
|
||||||
} finally { |
|
||||||
loading.value = false |
|
||||||
} |
|
||||||
}) |
|
||||||
</script> |
|
Loading…
Reference in new issue