提交:项目详情页 展示缩放bug 优化

This commit is contained in:
23688nl 2022-09-07 15:25:37 +08:00
parent 2fd3a71175
commit 3a0433d77e
1 changed files with 13 additions and 1 deletions

View File

@ -310,6 +310,13 @@ export default {
stateSourceId(val) {
this.init()
},
opened: {
handler() {
this.resize_window_project();
},
deep: true,
immediate: true
}
},
mounted() {
//
@ -321,6 +328,11 @@ export default {
this.resize_window_project();
});
},
computed: {
opened() {
return this.$store.getters.sidebar;
}
},
methods: {
init() {
this.getInfoByProjectId();
@ -344,7 +356,7 @@ export default {
Number(document.documentElement.clientWidth / this.divWidth) -
(Cookies.get("sidebarStatus") !== "0"
? Number(240 / this.divWidth)
: Number(54 / this.divWidth));
: Number(80 / this.divWidth));
}
this.scalseNumY = Number(
(document.documentElement.clientHeight - 125) / this.divHeight