feat: enhance WechatModal component functionality

This commit is contained in:
Cat Tom 2025-03-26 03:27:33 +08:00
parent 68b5b730bd
commit 1840901294

View File

@ -12,12 +12,16 @@ const props = defineProps({
type: String,
required: true,
validator: value => {
if (!value) return false
//
if (!value) return true
//
return (
value.startsWith('/') ||
value.startsWith('http') ||
value.startsWith('data:image') ||
value.startsWith('@/')
value.startsWith('@/') ||
value.startsWith('src/') || // src/
value.includes('base64') // base64
)
}
},