mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-12 19:20:18 +08:00
🐛 Fix(custom): fix static assets bugs
This commit is contained in:
@@ -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 || ''] }"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user