fix: reload config

This commit is contained in:
xingyu4j
2025-10-20 13:49:09 +08:00
parent 7ed34921bc
commit 91dd233727
3 changed files with 1 additions and 2 deletions

View File

@@ -56,7 +56,6 @@ export const schema: VbenFormSchema[] = [
show: (values) => values.type === 'afterSale',
},
},
// TODO @xingyu【缺陷】貌似 switch 在 schema 里报错了。直接。。。
{
fieldName: 'deliveryExpressFreeEnabled',
label: '启用包邮',

View File

@@ -58,6 +58,7 @@ async function handleSubmit() {
data.brokerageWithdrawMinPrice = yuanToFen(data.brokerageWithdrawMinPrice!);
await saveTradeConfig(data);
ElMessage.success($t('ui.actionMessage.operationSuccess'));
await getConfigInfo();
}
const [Form, formApi] = useVbenForm({

View File

@@ -9,7 +9,6 @@ import { z } from '#/adapter/form';
import { getTenantPackageList } from '#/api/system/tenant-package';
import { getRangePickerDefaultProps } from '#/utils';
// TODO @xingyu这个不用 ref 么?
let tenantPackageList: SystemTenantPackageApi.TenantPackage[] = [];
async function getTenantPackageData() {