mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-08-28 11:36:58 +08:00
🐛 Fix(custom): fix static assets bugs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user