commit
54ec023c0c
@ -794,7 +794,6 @@ export default {
|
|||||||
restore() {
|
restore() {
|
||||||
const canvasHeight = document.getElementById(this.previewDomId).offsetHeight
|
const canvasHeight = document.getElementById(this.previewDomId).offsetHeight
|
||||||
const canvasWidth = document.getElementById(this.previewDomId).offsetWidth
|
const canvasWidth = document.getElementById(this.previewDomId).offsetWidth
|
||||||
console.log('===canvasHeight=' + canvasHeight + ';canvasWidth=' + canvasWidth)
|
|
||||||
this.scaleWidth = (canvasWidth) * 100 / this.canvasStyleData.width // 获取宽度比
|
this.scaleWidth = (canvasWidth) * 100 / this.canvasStyleData.width // 获取宽度比
|
||||||
// 如果是后端截图方式使用 的高度伸缩比例和宽度比例相同
|
// 如果是后端截图方式使用 的高度伸缩比例和宽度比例相同
|
||||||
if (this.backScreenShot) {
|
if (this.backScreenShot) {
|
||||||
|
|||||||
@ -17,7 +17,7 @@ const name = defaultSettings.title || 'vue Admin Template' // page title
|
|||||||
const port = process.env.port || process.env.npm_config_port || 9528 // dev port
|
const port = process.env.port || process.env.npm_config_port || 9528 // dev port
|
||||||
const parallel = process.env.NODE_ENV === 'development'
|
const parallel = process.env.NODE_ENV === 'development'
|
||||||
module.exports = {
|
module.exports = {
|
||||||
productionSourceMap: true,
|
productionSourceMap: false,
|
||||||
publicPath: process.env.VUE_CONTEXT_PATH,
|
publicPath: process.env.VUE_CONTEXT_PATH,
|
||||||
parallel,
|
parallel,
|
||||||
// 使用mock-server
|
// 使用mock-server
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user