完成帮助中心的改造

This commit is contained in:
chenjinyang
2026-01-26 13:49:43 +08:00
parent c878dc19d7
commit 4dd824d296
34 changed files with 1471 additions and 44 deletions

View File

@@ -1,36 +1,19 @@
<script setup lang="ts">
defineOptions({
name: 'HelpCenter',
})
</script>
<template>
<div class="help-center">
<!-- 嵌入Vdoing帮助文档的iframe -->
<iframe
class="help-iframe"
src="/help-center/index.html"
frameborder="0"
></iframe>
<!-- 帮助中心页面内容由iframeToggle组件处理 -->
<div class="help-center-container">
</div>
</template>
<style scoped lang="scss">
.help-center {
width: 100%;
min-height: 100vh;
box-sizing: border-box;
h1 {
margin-bottom: 20px;
font-size: 24px;
font-weight: 600;
}
// 让iframe占满剩余高度
.help-iframe {
width: 100%;
height: calc(100vh - 80px); // 减去标题和padding的高度可根据实际调整
}
<script>
export default {
name: 'HelpCenter'
}
</style>
</script>
<style scoped>
.help-center-container {
width: 100%;
height: 100%;
overflow: hidden;
}
</style>