fix: remove unused parseTypes import, fix string[] type mismatch

This commit is contained in:
erio
2026-04-07 02:45:16 +08:00
parent 957afed0f0
commit 18107819da
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
0.1.108.56
0.1.108.57
@@ -80,7 +80,7 @@ import Icon from '@/components/icons/Icon.vue'
import ProviderCard from './ProviderCard.vue'
import type { ProviderInstance } from '@/types/payment'
import type { TypeOption } from './providerConfig'
import { getAvailableTypes, parseTypes } from './providerConfig'
import { getAvailableTypes } from './providerConfig'
const props = defineProps<{
providers: ProviderInstance[]
+1 -1
View File
@@ -2840,7 +2840,7 @@ const providerKeyOptions = computed(() => [
])
const enabledProviderKeyOptions = computed(() => {
const enabled = parseTypes(form.payment_enabled_types)
const enabled = form.payment_enabled_types
return providerKeyOptions.value.filter(opt => {
if (opt.value === 'easypay') return enabled.includes('easypay') || enabled.includes('alipay') || enabled.includes('wxpay')
if (opt.value === 'alipay') return enabled.includes('alipay')