vue的缓存

  • 2020 年 3 月 26 日
  • 筆記

  activated() {      this.$nextTick(() => {  //  activated        if (this.writerList.length > 0) {          let cId = localStorage.getItem("cardIndex");          let cFlag = localStorage.getItem("cFlag");          console.log("标志", cFlag, "序号", cId);          console.log(cId, this.writerList);          if (cId && cFlag === "true") {            this.writerList[cId].status = 14;          }        }      });
vue的缓存.png