fix: 颜色选择器 添加透明度的选择 以及topo图 背景默认透明

This commit is contained in:
zhangyu
2021-11-19 14:25:27 +08:00
parent 6a00be20f0
commit 415d6fadf6
4 changed files with 20 additions and 5 deletions

View File

@@ -805,7 +805,7 @@ export default {
// data = JSON.parse(localStorage.getItem('topoData'))
if (!res.data.topo || !data.pens) {
data = {
bkColor: '#FFFFFF',
bkColor: '#FFFFFF00',
gridSize: 10,
gridColor: '#ededed',
lineWidth: 1,
@@ -886,6 +886,9 @@ export default {
if (!data.bkImage) {
data.bkImage = undefined
}
if (data.bkColor === '#FFFFFF') {
data.bkColor = '#FFFFFF00'
}
Promise.all(promiseArr).then(res => {
res.forEach((response, index) => {
const item = data.pens[index]