fix(Editor): 处理首页创建项目时模板缩略图加载失败的bug

This commit is contained in:
ErSan 2025-11-14 19:53:21 +08:00
parent c84bc60d8c
commit ebfa52b990

View File

@ -216,7 +216,7 @@ onMounted(() => {
<n-divider vertical class="!h-auto"/> <n-divider vertical class="!h-auto"/>
<div class="h-full w-320px flex flex-col justify-start ml-10px"> <div class="h-full w-320px flex flex-col justify-start ml-10px">
<img :src="currentExample?.coverPicture || '/static/images/carousel/Astral3DEditor.jpg'" class="w-full"> <img :src="getServiceStaticFile(currentExample?.coverPicture || '') || '/static/images/carousel/Astral3DEditor.jpg'" class="w-full">
<h3 class="mt-10px mb-8px">{{ currentExample?.sceneName || t("home.Empty project") }}</h3> <h3 class="mt-10px mb-8px">{{ currentExample?.sceneName || t("home.Empty project") }}</h3>
<p class="h-100px overflow-y-auto"> <p class="h-100px overflow-y-auto">