diff --git a/src/views/components/fixed1920.vue b/src/views/components/fixed1920.vue index 59987491c..5bf0d7a53 100644 --- a/src/views/components/fixed1920.vue +++ b/src/views/components/fixed1920.vue @@ -33,10 +33,10 @@ export default { }, created() {}, mounted() { - window.onresize = () => { + window.addEventListener("resize", () => { this.clientHeight = document.documentElement.clientHeight; this.clientWidth = document.documentElement.clientWidth; - }; + }); }, methods: {}, diff --git a/src/views/main-shuju/main.vue b/src/views/main-shuju/main.vue index 4abb6808f..37581b4a4 100644 --- a/src/views/main-shuju/main.vue +++ b/src/views/main-shuju/main.vue @@ -29,6 +29,7 @@ import debounce from "lodash/debounce"; import { mapGetters } from "vuex"; import nextTick from "dai-js/tools/nextTick"; import { requestPost } from "@/js/dai/request"; +import fixed1920 from "@/views/components/fixed1920.vue"; export default { provide() { @@ -51,6 +52,7 @@ export default { components: { MainNavbar, MainContent, + fixed1920, }, watch: { @@ -145,7 +147,8 @@ export default { &::-webkit-scrollbar-corner, /* 滚动条角落 */ &::-webkit-scrollbar-thumb, - &::-webkit-scrollbar-track { /*滚动条的轨道*/ + &::-webkit-scrollbar-track { + /*滚动条的轨道*/ border-radius: 4px; } @@ -153,13 +156,13 @@ export default { &::-webkit-scrollbar-track { /* 滚动条轨道 */ - background: rgba(12, 129, 254, .24); + background: rgba(12, 129, 254, 0.24); // box-shadow: inset 0 0 1px rgba(180, 160, 120, 0.5); } &::-webkit-scrollbar-thumb { /* 滚动条手柄 */ - background: linear-gradient(270deg, #1257c9, #0095FF); + background: linear-gradient(270deg, #1257c9, #0095ff); } }