fix: modify the problem of lazy load root node not triggering in tree menu component vue3 (#4242)
This commit is contained in:
parent
5ad55a68bc
commit
72bcdfe803
|
|
@ -15,6 +15,10 @@ import { xss } from '@opentiny/utils'
|
|||
export const initData =
|
||||
({ state, props, service, api }: { state: ITreeMenuState; props: ITreeMenuProps; service: any; api: ITreeMenuApi }) =>
|
||||
async () => {
|
||||
if (props.lazy) {
|
||||
return
|
||||
}
|
||||
|
||||
if (props.data) {
|
||||
state.data = props.data
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue