chore: fix build

This commit is contained in:
zernonia 2024-03-23 17:23:28 +08:00
parent 6c66e974e5
commit 92c08f5a4a
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ const params = useUrlSearchParams('hash-params')
</script> </script>
<template> <template>
<div :class="params.containerClass"> <div v-if="params.name" :class="params.containerClass">
<ComponentLoader :name="params.name.toString()" :type-name="'block'" /> <ComponentLoader :name="params.name?.toString()" :type-name="'block'" />
</div> </div>
</template> </template>

View File

@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { CircleHelp, Info, Monitor, Phone, Smartphone, Tablet } from 'lucide-vue-next' import { CircleHelp, Info, Monitor, Smartphone, Tablet } from 'lucide-vue-next'
import { reactive, ref, watch } from 'vue' import { reactive, ref, watch } from 'vue'
import { codeToHtml } from 'shiki' import { codeToHtml } from 'shiki'
import { compileScript, parse, walk } from 'vue/compiler-sfc' import { compileScript, parse, walk } from 'vue/compiler-sfc'