处理冲突
This commit is contained in:
@@ -183,13 +183,14 @@ const getList = async (pageIndex, pageSize) => {
|
|||||||
// 选中项的索引号
|
// 选中项的索引号
|
||||||
const selectIndex = ref(null);
|
const selectIndex = ref(null);
|
||||||
const radioChange = (e) => {
|
const radioChange = (e) => {
|
||||||
let {value} = e.detail; // index
|
const selectedIndex = e.detail.value;
|
||||||
// console.log(value);
|
//发送全局事件
|
||||||
const eventChannel = instance.getOpenerEventChannel();
|
uni.$emit('onCustomerSelected',list.value[selectedIndex])
|
||||||
eventChannel.emit('onCustomerSelected', list.value[value]);
|
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user