From 1dbbe990d3334d5568263b351ba54b33ea948121 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Sat, 21 May 2022 15:35:32 +0800 Subject: [PATCH] client: fix data transform error --- .../src/thirtypart/kityminder/kity-core/core/compatibility.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/client/src/thirtypart/kityminder/kity-core/core/compatibility.js b/packages/client/src/thirtypart/kityminder/kity-core/core/compatibility.js index 801a217f..b78ddf1c 100644 --- a/packages/client/src/thirtypart/kityminder/kity-core/core/compatibility.js +++ b/packages/client/src/thirtypart/kityminder/kity-core/core/compatibility.js @@ -48,6 +48,10 @@ define(function (require, exports, module) { * v1.1.3 => v1.2.0 * */ function c_113_120(json) { + if (!json.data) { + json.data = {}; + } + // 原本的布局风格 var ocs = json.data.currentstyle; delete json.data.currentstyle;