From d8905ec774c6f0a524b364ff9e419b651705a42b Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 25 Oct 2023 22:12:55 +0800 Subject: [PATCH] fix: word warn --- src/views/member/user/user.data.ts | 5 ----- src/views/mp/freePublish/index.vue | 6 +++--- src/views/mp/message/message.data.ts | 6 +++--- src/views/mp/tag/tag.data.ts | 6 +++--- src/views/mp/user/mpuser.data.ts | 6 +++--- src/views/system/dept/dept.data.ts | 5 ----- src/views/system/menu/menu.data.ts | 5 ----- src/views/system/user/user.data.ts | 5 ----- 8 files changed, 12 insertions(+), 32 deletions(-) diff --git a/src/views/member/user/user.data.ts b/src/views/member/user/user.data.ts index a759f76..b793fbd 100644 --- a/src/views/member/user/user.data.ts +++ b/src/views/member/user/user.data.ts @@ -200,11 +200,6 @@ export const formSchema: FormSchema[] = [ component: 'ApiTreeSelect', componentProps: { api: () => getAreaTree(), - fieldNames: { - label: 'name', - key: 'id', - value: 'id', - }, handleTree: 'id', }, }, diff --git a/src/views/mp/freePublish/index.vue b/src/views/mp/freePublish/index.vue index 4ce8a5e..4e75c41 100644 --- a/src/views/mp/freePublish/index.vue +++ b/src/views/mp/freePublish/index.vue @@ -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', diff --git a/src/views/mp/message/message.data.ts b/src/views/mp/message/message.data.ts index be4c735..50b7d33 100644 --- a/src/views/mp/message/message.data.ts +++ b/src/views/mp/message/message.data.ts @@ -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', diff --git a/src/views/mp/tag/tag.data.ts b/src/views/mp/tag/tag.data.ts index ca6bf40..58d1bb7 100644 --- a/src/views/mp/tag/tag.data.ts +++ b/src/views/mp/tag/tag.data.ts @@ -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', diff --git a/src/views/mp/user/mpuser.data.ts b/src/views/mp/user/mpuser.data.ts index 806c2bb..48f8bf7 100644 --- a/src/views/mp/user/mpuser.data.ts +++ b/src/views/mp/user/mpuser.data.ts @@ -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', diff --git a/src/views/system/dept/dept.data.ts b/src/views/system/dept/dept.data.ts index dbd5684..a3fd9aa 100644 --- a/src/views/system/dept/dept.data.ts +++ b/src/views/system/dept/dept.data.ts @@ -90,11 +90,6 @@ export const formSchema: FormSchema[] = [ componentProps: { api: () => listSimpleDept(), parentLabel: '主类目', - fieldNames: { - label: 'name', - key: 'id', - value: 'id', - }, handleTree: 'id', }, }, diff --git a/src/views/system/menu/menu.data.ts b/src/views/system/menu/menu.data.ts index 89c645e..56ff758 100644 --- a/src/views/system/menu/menu.data.ts +++ b/src/views/system/menu/menu.data.ts @@ -85,11 +85,6 @@ export const formSchema: FormSchema[] = [ componentProps: { api: () => listSimpleMenus(), parentLabel: '主类目', - fieldNames: { - label: 'name', - key: 'id', - value: 'id', - }, handleTree: 'id', }, }, diff --git a/src/views/system/user/user.data.ts b/src/views/system/user/user.data.ts index 7df7e43..150a669 100644 --- a/src/views/system/user/user.data.ts +++ b/src/views/system/user/user.data.ts @@ -149,11 +149,6 @@ export const formSchema: FormSchema[] = [ component: 'ApiTreeSelect', componentProps: { api: () => listSimpleDept(), - fieldNames: { - label: 'name', - key: 'id', - value: 'id', - }, handleTree: 'id', }, },