mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-22 18:40:04 +00:00
fix: remove unused parseTypes import, fix string[] type mismatch
This commit is contained in:
@@ -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[]
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user