使用 computed() 合并三者即可:import { ref, computed } from 'vue' const province = ref('') const city = ref('') const district = ref('') const address = computed(()=> [province.value, city.value, district.value].join(' '))实例:playground
使用
computed()
合并三者即可:实例:playground