Compare commits
No commits in common. "4c7c0cce477b09cdc8b294ff87f0f4d1452686b7" and "dc84d0e96fa03558f1c64dc7a36be717e5de075a" have entirely different histories.
4c7c0cce47
...
dc84d0e96f
|
|
@ -988,13 +988,6 @@ export default {
|
||||||
this.cols = 2
|
this.cols = 2
|
||||||
this.activeViewportIndex = 1
|
this.activeViewportIndex = 1
|
||||||
}
|
}
|
||||||
if (localStorage.getItem('SegmentConfig') && this.readingTool === 3) {
|
|
||||||
let obj = JSON.parse(localStorage.getItem('SegmentConfig'))
|
|
||||||
this.SegmentConfig.renderOutline = obj.renderOutline
|
|
||||||
this.SegmentConfig.renderFill = obj.renderFill
|
|
||||||
this.SegmentConfig.fillAlpha = obj.fillAlpha
|
|
||||||
this.SegmentConfig.outlineWidth = obj.outlineWidth
|
|
||||||
}
|
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.loadRelatedTasks()
|
this.loadRelatedTasks()
|
||||||
|
|
|
||||||
|
|
@ -564,7 +564,6 @@ export default {
|
||||||
})
|
})
|
||||||
const digitPlaces = Number(localStorage.getItem('digitPlaces'))
|
const digitPlaces = Number(localStorage.getItem('digitPlaces'))
|
||||||
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
|
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
|
||||||
this.getSegmentConfig()
|
|
||||||
// document.addEventListener("click", () => {
|
// document.addEventListener("click", () => {
|
||||||
// this.popoverId = null
|
// this.popoverId = null
|
||||||
// });
|
// });
|
||||||
|
|
@ -589,7 +588,6 @@ export default {
|
||||||
SegmentConfig: {
|
SegmentConfig: {
|
||||||
handler() {
|
handler() {
|
||||||
// this.readingSegmentByConfig()
|
// this.readingSegmentByConfig()
|
||||||
this.setSegmentConfig()
|
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
},
|
},
|
||||||
|
|
@ -613,23 +611,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getSegmentConfig() {
|
|
||||||
if (!localStorage.getItem('SegmentConfig')) return false
|
|
||||||
let obj = JSON.parse(localStorage.getItem('SegmentConfig'))
|
|
||||||
this.sliderStep = obj.sliderStep
|
|
||||||
this.sliderMax = obj.sliderMax
|
|
||||||
},
|
|
||||||
setSegmentConfig() {
|
|
||||||
let obj = {
|
|
||||||
sliderStep: this.sliderStep,
|
|
||||||
sliderMax: this.sliderMax,
|
|
||||||
renderOutline: this.SegmentConfig.renderOutline,
|
|
||||||
renderFill: this.SegmentConfig.renderFill,
|
|
||||||
fillAlpha: this.SegmentConfig.fillAlpha,
|
|
||||||
outlineWidth: this.SegmentConfig.outlineWidth,
|
|
||||||
}
|
|
||||||
localStorage.setItem('SegmentConfig', JSON.stringify(obj))
|
|
||||||
},
|
|
||||||
handleSliderChange(value) {
|
handleSliderChange(value) {
|
||||||
// console.log(value, 'value')
|
// console.log(value, 'value')
|
||||||
let data = this.sliderSection.find(item => item.max === value)
|
let data = this.sliderSection.find(item => item.max === value)
|
||||||
|
|
@ -639,7 +620,6 @@ export default {
|
||||||
if (this.brushSize >= data.max) {
|
if (this.brushSize >= data.max) {
|
||||||
this.brushSize = data.max
|
this.brushSize = data.max
|
||||||
}
|
}
|
||||||
this.setSegmentConfig()
|
|
||||||
},
|
},
|
||||||
fileSizeFormatter(size) {
|
fileSizeFormatter(size) {
|
||||||
if (!size) return
|
if (!size) return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue