first commit

This commit is contained in:
不做码农
2022-04-16 12:48:42 +08:00
commit abaf1671ff
273 changed files with 14907 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<template>
<div v-loading="loading" :style="'height:'+ height">
<iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
</div>
</template>
<script>
import { onMounted } from "vue";
export default {
name: "Swagger",
setup() {
const src = ref(import.meta.env.VITE_APP_BASE_API + "/swagger/index.html");
const height = ref(document.documentElement.clientHeight - 94.5 + "px;");
const loading = ref(true);
onMounted(() => {
setTimeout(() => {
loading.value = false;
}, 230);
window.onresize = function temp() {
height.value = document.documentElement.clientHeight - 94.5 + "px;";
};
});
return {
src,
height,
loading,
};
},
};
</script>