fix: 修复新增chart、asset后报错的问题

1.新增chart使用新panel保存后报错
2.asset没添加成功后vendor会重置的问题
This commit is contained in:
陈劲松
2020-03-13 16:16:35 +08:00
parent f70de42918
commit de51ed0c79
2 changed files with 7 additions and 186 deletions

View File

@@ -275,7 +275,7 @@ export default {
// 设置时间-数据格式对
const dpsArr = Object.entries(queryItem.values);//[ ["0",[1577959830.781,"0"]], ["1",[1577959845.781,"0"]] ]
// 判断是否有数据
if (dpsArr.length > 0 && tagsArr.length > 0) {
if (dpsArr.length > 0 && tagsArr.length > 0 && this.$refs.editChart[index]) {
tagsArr.forEach((tag, i) => {
if (tag !== '__name__') {
host += `${tag}="${queryItem.metric[tag]}",`;