fix: 修复静态资源问题

This commit is contained in:
陈淳
2023-10-18 12:35:28 +08:00
parent 53ca11f85b
commit 7f041c96fb
3 changed files with 1 additions and 47 deletions

View File

@@ -13,7 +13,7 @@ const url = `${import.meta.env.VITE_APP_BASE_API}/file/`;
const getUrl = () => {
const src = props.src;
if (src === null || typeof src === "undefined" || src.trim() === "") {
return "@/assets/icon.jpg";
return "/icon.jpg";
// 字符串为 null、未定义或为空字符串
} else {