From bc5ec1017fd8a140ec5c30ea9e8ea839d5bf1bda Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 15 十二月 2020 16:22:20 +0800 Subject: [PATCH] 2020-12-15 --- src/utils/utils-update.js | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/utils/utils-update.js b/src/utils/utils-update.js index ba77678..eb738e5 100644 --- a/src/utils/utils-update.js +++ b/src/utils/utils-update.js @@ -9,6 +9,7 @@ */ static updateCommonTable (config) { if (!config.version || config.version < '1.0') { + config.version = '1.0' // 鍏煎鏍囩 if (!config.tabgroups) { config.tabgroups = [{ uuid: 'tabs', sublist: [] }] @@ -51,11 +52,6 @@ return _cell }) - - if (card.widthType === 'ratio' && card.avatar && card.avatar.widthType !== 'ratio') { - card.avatar.widthType = 'ratio' - card.avatar.width = 32 - } } }) } @@ -87,6 +83,7 @@ */ static updateSubTable (config) { if (!config.version || config.version < '1.0') { + config.version = '1.0' // 鍏煎鍥捐〃 if (!config.charts) { config.expand = false @@ -124,11 +121,6 @@ return _cell }) - - if (card.widthType === 'ratio' && card.avatar && card.avatar.widthType !== 'ratio') { - card.avatar.widthType = 'ratio' - card.avatar.width = 32 - } } }) } -- Gitblit v1.8.0