fix bugs
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
<template #unCheckedChildren>{{ labels.off }}</template>
|
||||
</a-switch>
|
||||
|
||||
<MainWalletProductsField
|
||||
v-else-if="isMainWalletProducts"
|
||||
:model-value="modelValue"
|
||||
:disabled="disabled"
|
||||
@update:value="emit('update:value', $event)"
|
||||
/>
|
||||
|
||||
<ZaarboxPriceKeyField
|
||||
v-else-if="isZaarboxPriceKey"
|
||||
:model-value="modelValue"
|
||||
@@ -86,6 +93,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import MainWalletProductsField from './MainWalletProductsField.vue'
|
||||
import ZaarboxPriceKeyField from './ZaarboxPriceKeyField.vue'
|
||||
import {
|
||||
parseSelectOptions,
|
||||
@@ -121,6 +129,7 @@ const fieldType = computed<SettingFieldType>(() =>
|
||||
)
|
||||
|
||||
const isZaarboxPriceKey = computed(() => props.settingKey === 'zaarbox_price_key')
|
||||
const isMainWalletProducts = computed(() => props.settingKey === 'main_wallet_products')
|
||||
|
||||
const selectItems = computed(() =>
|
||||
parseSelectOptions({
|
||||
|
||||
Reference in New Issue
Block a user