fix: 仪表板样式优化,修复仪表板公共颜色不显示问题

This commit is contained in:
wangjiahao
2022-05-30 13:12:52 +08:00
parent bd11d84240
commit c12dcb79bb
3 changed files with 17 additions and 5 deletions

View File

@@ -148,7 +148,7 @@ export function checkViewTitle(opt, id, tile) {
const curPanelViewsData = store.state.componentViewsData
const curComponentViewNames = []
store.state.componentData.forEach(item => {
if (item.type === 'view' && item.propValue && item.propValue.viewId) {
if (item.type === 'view' && item.propValue && item.propValue.viewId && curPanelViewsData[item.propValue.viewId]) {
// 更新时自己的title不加入比较
if ((opt === 'update' && id !== item.propValue.viewId) || opt === 'new') {
curComponentViewNames.push(curPanelViewsData[item.propValue.viewId].title)