Update use-dependent.ts typo (#12462)

This commit is contained in:
moonkop 2022-11-08 10:05:09 +08:00 committed by GitHub
parent 0793d1a14e
commit 11b1433080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ export function useDependent(model: { [field: string]: any }): IJsonItem[] {
label: t('project.node.hour')
}
]
const DATE_LSIT = {
const DATE_LIST = {
hour: [
{
value: 'currentHour',
@ -252,7 +252,7 @@ export function useDependent(model: { [field: string]: any }): IJsonItem[] {
)
}
if (dependItem.cycle) {
dependItem.dateOptions = DATE_LSIT[dependItem.cycle]
dependItem.dateOptions = DATE_LIST[dependItem.cycle]
}
})
})
@ -354,7 +354,7 @@ export function useDependent(model: { [field: string]: any }): IJsonItem[] {
props: {
onUpdateValue: (value: IDateType) => {
model.dependTaskList[i].dependItemList[j].dateOptions =
DATE_LSIT[value]
DATE_LIST[value]
model.dependTaskList[i].dependItemList[j].dateValue = null
}
},