zhangzengfei
2022-12-30 804d59e162b72be684d0087a8cd74dbd6fecbf4d
src/pages/library/components/baseList.vue
@@ -197,14 +197,14 @@
      await this.BaseManageData.querySyncTables();
      this.syncTableList = this.BaseManageData.syncTables;
      if (typ) {
        this.clickLast(typ);
        this.$emit("getList");
      } else {
        this.defaultShow();
      }
      await this.BaseManageData.queryLocalTables();
      this.localTableList = this.BaseManageData.localTables;
      if (typ) {
        this.clickLast(typ);
        this.$emit("getList");
      } else {
        this.defaultShow();
      }
@@ -232,10 +232,12 @@
    defaultShow() {
      if (this.syncTableList && this.syncTableList.length) {
        this.clickCategory(0, "sync", this.syncTableList[0]);
      } else {
      } else
        if (this.localTableList && this.localTableList.length) {
          this.clickCategory(0, "local", this.syncTableList[0]);
        }
      else {
        console.log("this.localTableList.length",this.localTableList.length)
      }
    },
    // 添加时间比较函数