跳转前先清除对应的监听器

This commit is contained in:
aixianling
2023-09-11 14:40:35 +08:00
parent 568ffbb825
commit 628e91594d

View File

@@ -56,6 +56,7 @@ export default {
handleJump() {
let {config, nodeKey, valueObj, isRequire, isShowPhone} = this,
selected = (valueObj ? this.value[nodeKey] : this.value) || this.selected?.map(e => e[nodeKey])
uni.$off('pagePicker:' + this.type)
uni.$once('pagePicker:' + this.type, data => {
console.log('发送', data)
this.pickList = data