chore: 新增关于项目菜单(该菜单从动态路由调整为静态,且不再需要鉴权)

This commit is contained in:
2024-11-23 22:47:59 +08:00
parent b82ca81b79
commit 7fa42975cf
11 changed files with 144 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
<template>
<a-spin class="gi-iframe" :loading="loading">
<iframe class="iframe" :src="props.src" @load="onLoad"></iframe>
</a-spin>
</template>
<script lang='ts' setup>
defineOptions({ name: 'GiIframe' })
const props = withDefaults(defineProps<Props>(), {
src: '',
})
interface Props {
src: string
}
const loading = ref(true)
const onLoad = () => {
loading.value = false
}
</script>
<style scoped lang="scss">
.gi-iframe {
flex: 1;
}
.iframe {
border: 0;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
</style>