fix: 完成管理端类型安全收口
This commit is contained in:
1 parent
2712517e64
commit
665a88eb30
5 files changed
+38
-18
No files matched your search
@@ -129,7 +129,7 @@ export function ServicesPage() {
|
||||
package: "套餐",
|
||||
subscription: "订阅",
|
||||
} as Record<string, string>
|
||||
)[value] ?? value}
|
||||
)[String(value)] ?? String(value)}
|
||||
</Tag>
|
||||
),
|
||||
},
|
||||
@@ -154,7 +154,7 @@ export function ServicesPage() {
|
||||
还没有公开业务提供项。创建后,小程序服务页会优先读取这些内容。
|
||||
</Typography.Paragraph>
|
||||
)}
|
||||
<Divider orientation="left">兼容旧版服务</Divider>
|
||||
<Divider>兼容旧版服务</Divider>
|
||||
<Table
|
||||
rowKey="id"
|
||||
size="small"
|
||||
@@ -201,7 +201,7 @@ export function ServicesPage() {
|
||||
<Form
|
||||
form={offeringForm}
|
||||
layout="vertical"
|
||||
onFinish={(values) => saveOffering.mutate(values)}
|
||||
onFinish={(values) => saveOffering.mutate(values as Record<string, unknown>)}
|
||||
>
|
||||
<Form.Item name="kind" label="类型" rules={[{ required: true }]}>
|
||||
<Select
|
||||
@@ -324,7 +324,11 @@ export function ServicesPage() {
|
||||
onOk={() => form.submit()}
|
||||
confirmLoading={save.isPending}
|
||||
>
|
||||
<Form form={form} layout="vertical" onFinish={(values) => save.mutate(values)}>
|
||||
<Form
|
||||
form={form}
|
||||
layout="vertical"
|
||||
onFinish={(values) => save.mutate(values as Record<string, unknown>)}
|
||||
>
|
||||
<Form.Item name="name" label="服务名称" rules={[{ required: true }]}>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
|
||||
Reference in new issue
Block a user