摘要:
watch:{ "$store.state.user_love_list"//vuex中的数据(newVal//vuex新的数据产生时,oldVal//vuex旧的数据){//可在数据更新前或更新后进行操作 this.user_list=newVal // console.log(" new") / 阅读全文
摘要:
如果存在一个接口需要另一个接口的返回的数据时,需要做异步等待 async userLove(){ await user_love({uid:this.$store.state.user_id}).then((res)=>{ // console.log('喜欢列表') // console.log( 阅读全文