我是vue的新手.js.我开始迁移我的angularjs应用程序.
我错过了什么?
<template>
<input type="radio" name="account-type" @click="setAccountType(item.id)"/><span>{{item.name}}</span>
</template>
<script>
export default {
data() {
return { accountType: null
},
methods: { setAccountType: (typeId) => this.accountType = typeId
}
</script>
这不是预期的数据实例,因此ui未更新.
感谢您的帮助.
亲切的问候.