⚡ 补充分割低频组件与响应式渲染优化
根据全站性能审计继续降低低频组件请求、重复 DOM 与重复缓存 URL 成本。 - 二维码组件改为详情弹窗实际渲染时异步加载 - 文件管理仅挂载当前断点对应的移动列表或桌面表格 - Vite 静态与动态资源统一使用 /theme-assets/ 前缀 - 已通过架构检查、类型检查、ESLint 和生产构建
This commit is contained in:
1 parent
aa3743b42d
commit
2fe835d8d2
4 files changed
+20
-6
No files matched your search
@@ -168,7 +168,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, inject } from 'vue'
|
||||
import { computed, defineAsyncComponent, inject } from 'vue'
|
||||
import {
|
||||
ClipboardCopyIcon,
|
||||
ClockIcon,
|
||||
@@ -177,7 +177,7 @@ import {
|
||||
TerminalIcon,
|
||||
XIcon
|
||||
} from 'lucide-vue-next'
|
||||
import QRCode from 'qrcode.vue'
|
||||
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import type { SentFileRecord } from '@/types'
|
||||
|
||||
@@ -195,6 +195,7 @@ defineEmits<{
|
||||
|
||||
const { t } = useI18n()
|
||||
const isDarkMode = inject('isDarkMode')
|
||||
const QRCode = defineAsyncComponent(() => import('qrcode.vue'))
|
||||
const qrValue = computed(() => (props.record ? props.getQRCodeValue(props.record) : ''))
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user