处理冲突

This commit is contained in:
PC-202311141343\Administrator
2025-08-29 14:51:05 +08:00

View File

@@ -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>