fix: word warn

pull/38/head
xingyu 2023-10-25 22:12:55 +08:00
parent 84a4db58a9
commit d8905ec774
8 changed files with 12 additions and 32 deletions

View File

@ -200,11 +200,6 @@ export const formSchema: FormSchema[] = [
component: 'ApiTreeSelect',
componentProps: {
api: () => getAreaTree(),
fieldNames: {
label: 'name',
key: 'id',
value: 'id',
},
handleTree: 'id',
},
},

View File

@ -6,7 +6,7 @@ import { getSimpleAccounts } from '@/api/mp/account'
import { deleteFreePublish, getFreePublishPage } from '@/api/mp/freePublish'
import type { FormSchema } from '@/components/Form'
const simpleAccountsOptinos = await getSimpleAccounts()
const simpleAccountsOptions = await getSimpleAccounts()
const searchSchema: FormSchema[] = [
{
@ -14,9 +14,9 @@ const searchSchema: FormSchema[] = [
field: 'accountId',
component: 'Select',
required: true,
defaultValue: simpleAccountsOptinos[0].id,
defaultValue: simpleAccountsOptions[0].id,
componentProps: {
options: simpleAccountsOptinos,
options: simpleAccountsOptions,
fieldNames: {
label: 'name',
value: 'id',

View File

@ -122,7 +122,7 @@ export const columns: BasicColumn[] = [
},
]
const simpleAccountsOptinos = await getSimpleAccounts()
const simpleAccountsOptions = await getSimpleAccounts()
export const searchFormSchema: FormSchema[] = [
{
@ -130,9 +130,9 @@ export const searchFormSchema: FormSchema[] = [
field: 'accountId',
component: 'Select',
required: true,
defaultValue: simpleAccountsOptinos[0].id,
defaultValue: simpleAccountsOptions[0].id,
componentProps: {
options: simpleAccountsOptinos,
options: simpleAccountsOptions,
fieldNames: {
label: 'name',
value: 'id',

View File

@ -28,7 +28,7 @@ export const columns: BasicColumn[] = [
},
]
const simpleAccountsOptinos = await getSimpleAccounts()
const simpleAccountsOptions = await getSimpleAccounts()
export const searchFormSchema: FormSchema[] = [
{
@ -36,9 +36,9 @@ export const searchFormSchema: FormSchema[] = [
field: 'accountId',
component: 'Select',
required: true,
defaultValue: simpleAccountsOptinos[0].id,
defaultValue: simpleAccountsOptions[0].id,
componentProps: {
options: simpleAccountsOptinos,
options: simpleAccountsOptions,
fieldNames: {
label: 'name',
value: 'id',

View File

@ -50,7 +50,7 @@ export const columns: BasicColumn[] = [
},
]
const simpleAccountsOptinos = await getSimpleAccounts()
const simpleAccountsOptions = await getSimpleAccounts()
export const searchFormSchema: FormSchema[] = [
{
@ -58,9 +58,9 @@ export const searchFormSchema: FormSchema[] = [
field: 'accountId',
component: 'Select',
required: true,
defaultValue: simpleAccountsOptinos[0].id,
defaultValue: simpleAccountsOptions[0].id,
componentProps: {
options: simpleAccountsOptinos,
options: simpleAccountsOptions,
fieldNames: {
label: 'name',
value: 'id',

View File

@ -90,11 +90,6 @@ export const formSchema: FormSchema[] = [
componentProps: {
api: () => listSimpleDept(),
parentLabel: '主类目',
fieldNames: {
label: 'name',
key: 'id',
value: 'id',
},
handleTree: 'id',
},
},

View File

@ -85,11 +85,6 @@ export const formSchema: FormSchema[] = [
componentProps: {
api: () => listSimpleMenus(),
parentLabel: '主类目',
fieldNames: {
label: 'name',
key: 'id',
value: 'id',
},
handleTree: 'id',
},
},

View File

@ -149,11 +149,6 @@ export const formSchema: FormSchema[] = [
component: 'ApiTreeSelect',
componentProps: {
api: () => listSimpleDept(),
fieldNames: {
label: 'name',
key: 'id',
value: 'id',
},
handleTree: 'id',
},
},