提交:项目详情页 展示缩放bug 优化
This commit is contained in:
parent
2fd3a71175
commit
3a0433d77e
|
@ -310,6 +310,13 @@ export default {
|
||||||
stateSourceId(val) {
|
stateSourceId(val) {
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
|
opened: {
|
||||||
|
handler() {
|
||||||
|
this.resize_window_project();
|
||||||
|
},
|
||||||
|
deep: true,
|
||||||
|
immediate: true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// 计算缩放比例
|
// 计算缩放比例
|
||||||
|
@ -321,6 +328,11 @@ export default {
|
||||||
this.resize_window_project();
|
this.resize_window_project();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
opened() {
|
||||||
|
return this.$store.getters.sidebar;
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init() {
|
init() {
|
||||||
this.getInfoByProjectId();
|
this.getInfoByProjectId();
|
||||||
|
@ -344,7 +356,7 @@ export default {
|
||||||
Number(document.documentElement.clientWidth / this.divWidth) -
|
Number(document.documentElement.clientWidth / this.divWidth) -
|
||||||
(Cookies.get("sidebarStatus") !== "0"
|
(Cookies.get("sidebarStatus") !== "0"
|
||||||
? Number(240 / this.divWidth)
|
? Number(240 / this.divWidth)
|
||||||
: Number(54 / this.divWidth));
|
: Number(80 / this.divWidth));
|
||||||
}
|
}
|
||||||
this.scalseNumY = Number(
|
this.scalseNumY = Number(
|
||||||
(document.documentElement.clientHeight - 125) / this.divHeight
|
(document.documentElement.clientHeight - 125) / this.divHeight
|
||||||
|
|
Loading…
Reference in New Issue