wait
// 等待
function wait (component, key, callback) {if (component?.inited) {callback()} else {selfPage[`${key}_callback`] = selfPage[`${key}_callback`] ?? []selfPage[`${key}_callback`].push(callback)}
}
run
// 执行
function run (component, key) {let arr = [...(selfPage[`${key}_callback`] ?? [])]selfPage[`${key}_callback`] = []arr.forEach((callback, index) => {callback && callback(component)})
}