Vue3.0 computed 获取值,computed返回一个ref 使用的时候,要.value
const param = computed(()=>{ return { "username": formValue.name, "password": formValue.password } //return 1234 })
取值
console.log(JSON.stringify(param.value));
Vue3.0 computed 获取值,computed返回一个ref 使用的时候,要.value
const param = computed(()=>{ return { "username": formValue.name, "password": formValue.password } //return 1234 })
取值
console.log(JSON.stringify(param.value));
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。