🐛 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
+6 -2
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