Vue.js VueJS-属性或方法“;“当前用户”;未在实例上定义

Vue.js VueJS-属性或方法“;“当前用户”;未在实例上定义,vue.js,Vue.js,我有一个组件,在该组件中初始化data()属性中的空对象currentUser,还有一个HTML模板,该模板引用了组件中定义的currentUser,但我得到一个错误: Property or method "currentUser" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or

我有一个组件,在该组件中初始化
data()
属性中的空对象
currentUser
,还有一个HTML模板,该模板引用了组件中定义的
currentUser
,但我得到一个错误:

Property or method "currentUser" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property
这是我的密码

userProfile.vue

导出默认值{
数据(){
返回{
当前用户:{
用户名:“”,
电子邮件:“”,
电话号码:“”,
名字:'',
姓氏:“”,
时间:'',
加入:'',
推特URL:“”,
facebookUrl:“”,
linkedInUrl:“”,
化身:{}
}
}
},
已创建(){
}
}
userProfile.html

{{currentUser.first_name+''+currentUser.last_name}

我不明白为什么我会犯这个错误<代码>当前用户在组件中定义。

您的模板未正确关闭:我看到的是