Skip to content

Commit

Permalink
fix a vw bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofuyesnew committed Dec 5, 2018
1 parent b2f0abe commit 4dbfaa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ const app = new Vue({
break
case '3':
unit = 'vw'
wUnit = +this.frameData.prewidth / +data.design
hUnit = +this.frameData.preheight / +data.design
wUnit = +this.frameData.prewidth / +data.design * 100
hUnit = +this.frameData.preheight / +data.design * 100
break
}
let step = (100 / this.fileList.length).toFixed(2)
Expand Down

0 comments on commit 4dbfaa3

Please sign in to comment.