🐛 Fix(custom): fix static assets bugs

This commit is contained in:
Kuingsmile
2025-08-12 22:49:21 +08:00
parent d75ec2e31e
commit 5cfeaadcfe
263 changed files with 2057 additions and 2058 deletions

View File

@@ -318,7 +318,7 @@
>
<img
:src="imageErrorStates[item.key || '']
? '/errorLoading.png'
? './errorLoading.png'
: isAlwaysForceReload ? addCacheBustParam(item.src) : item.src"
class="gallery-image"
:class="{ loading: !imageLoadStates[item.key || ''] }"

View File

@@ -14,7 +14,7 @@
>
<img
v-if="!dragover && !isShowingProgress"
:src="logoPath ? logoPath : '/squareLogo.png'"
:src="logoPath ? logoPath : './squareLogo.png'"
style="width: 100%; height: 100%; border-radius: 50%"
draggable="false"
@dragstart.prevent

View File

@@ -126,7 +126,7 @@
<img
class="plugin-logo"
:src="item.logo"
:onerror="defaultLogo"
:onerror="setSrc"
alt=""
>
<div class="plugin-info">
@@ -331,9 +331,13 @@ const pluginNameList = ref<string[]>([])
const loading = ref(true)
const needReload = ref(false)
const latestVersionMap = reactive<{ [key: string]: string }>({})
const defaultLogo = ref('this.src=\'/roundLogo.png\'')
const $configForm = ref<InstanceType<typeof ConfigForm> | null>(null)
function setSrc (e: Event) {
const target = e.target as HTMLImageElement
target.src = import.meta.env.BASE_URL + 'roundLogo.png'
}
const npmSearchText = computed(() => {
return searchText.value.match('picgo-plugin-')
? searchText.value

View File

@@ -146,8 +146,8 @@ import type { IToolboxMap } from '#/types/view'
const { t } = useI18n()
const { confirm } = useConfirm()
const defaultLogo = ref('/roundLogo.png')
const activeTypes = ref<string[]>([])
const defaultLogo = computed(() => `${import.meta.env.BASE_URL}roundLogo.png`)
const fixList = reactive<IToolboxMap>({
[IToolboxItemType.IS_CONFIG_FILE_BROKEN]: {
title: t('pages.toolbox.checkConfigFileBroken'),