提交 e07b7345 编写于 作者: D dolymood

fix #161 ssr

上级 2990ac52
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
return `width:${this.width / this.ratio}px;height:${this.height / this.ratio}px` return `width:${this.width / this.ratio}px;height:${this.height / this.ratio}px`
} }
}, },
created() { mounted() {
this.ratio = window.devicePixelRatio this.ratio = window.devicePixelRatio
this.width *= this.ratio this.width *= this.ratio
this.height *= this.ratio this.height *= this.ratio
...@@ -41,8 +41,6 @@ ...@@ -41,8 +41,6 @@
x: this.initCenterX, x: this.initCenterX,
y: this.initCenterY y: this.initCenterY
} }
},
mounted() {
this._draw() this._draw()
}, },
methods: { methods: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册