|
@@ -280,14 +280,16 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.isVisible = true;
|
|
|
- window.addEventListener("scroll", () => {
|
|
|
+ this.$nextTick(() => {
|
|
|
const ele = document.getElementById("createEditDrawerBdWrap");
|
|
|
- const top = ele.scrollTop;
|
|
|
- if (top > 100) {
|
|
|
- this.isShowBackTop = true;
|
|
|
- } else {
|
|
|
- this.isShowBackTop = false;
|
|
|
- }
|
|
|
+ ele.addEventListener("scroll", () => {
|
|
|
+ const top = ele.scrollTop;
|
|
|
+ if (top > 100) {
|
|
|
+ this.isShowBackTop = true;
|
|
|
+ } else {
|
|
|
+ this.isShowBackTop = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
this.loadOptions();
|
|
|
this.loadAuthor();
|