提交:项目详情页 展示缩放bug 优化
This commit is contained in:
parent
2fd3a71175
commit
3a0433d77e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue