Files
hjc-web/app/layouts/default.vue
T
weicw-dshsa b88c9df3b3 chore(templates): 只保留 template-07,删除其余 9 套模板
汇吉采仅使用 template-07(后端绑定 + .env.development),其余
template-01~06、08~10 为多租户 SaaS 平台时代遗留,全部删除:

- 删除 app/templates/ 下 9 套模板目录及注册表内对应配置
- 删除 public/images/template-{01,03,09,10} 图片目录
- 删除 templates/cloud-website 下 9 张模板预览图
- 三处 template-01 兜底(nuxt.config / useTemplate / default.vue)改为 07
- 清理指向已删模板的注释,README 模板系统章节同步更新

模板动态加载机制保留:新增模板 = 建目录 + 在 app/templates/index.ts 注册
2026-09-30 07:38:05 +08:00

26 lines
729 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<div class="min-h-screen flex flex-col bg-white" :data-template-id="resolvedTemplateId || 'template-07'">
<!-- 模板 Header -->
<SiteHeader />
<!-- 主内容区 -->
<main class="flex-1">
<slot />
</main>
<!-- 模板 Footer -->
<SiteFooter />
<!-- 全站咨询弹窗(由 useConsult() 控制开关) -->
<ConsultDialog />
</div>
</template>
<script setup lang="ts">
// 默认布局:包含 Header + 内容 + Footer
// 模板组件内部会根据当前 templateId 动态加载对应模板
// 仅保留 template-07(唯一在用模板),其余模板目录已删除
import '~/templates/template-07/theme.css'
const { resolvedTemplateId } = useTemplate()
</script>