refactor(Home): 主页图片走后端获取,修改git clone的地址

This commit is contained in:
2025-09-02 00:00:51 +08:00
parent 42710ecf60
commit 76aff5d627
99 changed files with 9 additions and 7 deletions

View File

@@ -245,6 +245,8 @@ import {
import { Service } from '@/api/services/Service'
import NoticeModal from '@/components/NoticeModal.vue'
import dayjs from 'dayjs'
import { API_ENDPOINTS } from '@/config/mirrors.ts'
interface ActivityInfo {
Tip: string
@@ -398,12 +400,8 @@ const getMaterialImage = (dropName: string) => {
if (!dropName) {
return ''
}
try {
return new URL(`../assets/materials/${dropName}.png`, import.meta.url).href
} catch (error) {
console.warn('Failed to load material image:', dropName, error)
return ''
}
// 直接拼接后端图片接口地址
return `${API_ENDPOINTS.local}/api/res/materials/${dropName}.png`
}
const handleImageError = (event: Event) => {