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