perf: ASSET-list 窗口resize时滚动条刷新

This commit is contained in:
陈劲松
2020-04-16 21:34:44 +08:00
parent 0ab839a19d
commit 5c58e8eebf
3 changed files with 7 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
}
body {
height: 100%;
min-width: 1024px;
}
html {
height: 100%;

View File

@@ -993,7 +993,8 @@
let _this = this;
window.onresize = function () {
_this.$refs.leftScrollbar.update();
}
el._ps_.update();
};
});
let localStorageTitle = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path);
this.tablelable = localStorageTitle ? JSON.parse(localStorageTitle) : this.tableTitle;

View File

@@ -443,8 +443,12 @@
this.showTopBtn = false;
}
});
window.onresize = function() {
el._ps_.update();
};
}
});
this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
: this.tableTitle;