美文网首页
vue 本地数据链接遍历

vue 本地数据链接遍历

作者: 阳光之城alt | 来源:发表于2018-09-03 18:04 被阅读0次
    image.png
    created(){
                this.remark = ''
                //获取本地存储用户
                this.usarrp();
                 if(window.localStorage.getItem('loginUser')){ 
                    //获取用户信息
                    this.usId = JSON.parse(window.localStorage.getItem('loginUser')).FID;
                    console.log("this.userId"+this.usId)
                    }
                    
                    this.use ={user_id:this.usId}
                    this.$store.dispatch('setOrdezhu',this.use); //请求成功刷新群组
    
            },
    
    
      //公共循环方法
                 gongg(){
                     let _this = this;
                     this.shenduarr=[...this.sesyonghu]
                     this.ypkl.forEach((val,key)=>{
                     this.shenduarr.forEach((di,index)=>{
                            if(val.FID==di.FID){
                                _this.shenduarr.splice(index,1)
                            }
                        })
                     })
                    this.arrName=this.shenduarr
                 },
    
    
    

    相关文章

      网友评论

          本文标题:vue 本地数据链接遍历

          本文链接:https://www.haomeiwen.com/subject/oeeiwftx.html