level 1
龙可真
楼主
beforeCreate: function() {
let loading = this.$loading({body:true,text:"拼命加载中"});
// console.log(loading)
},
mounted: function() {
this.$nextTick(function () {
Object.assign(this.userModel, commonModel)
// console.log(this.userModel)
loading.close()
})
},
如上,在beforeCreate定义的loading,在mounted中未定义
2016年12月05日 01点12分
1
let loading = this.$loading({body:true,text:"拼命加载中"});
// console.log(loading)
},
mounted: function() {
this.$nextTick(function () {
Object.assign(this.userModel, commonModel)
// console.log(this.userModel)
loading.close()
})
},
如上,在beforeCreate定义的loading,在mounted中未定义