From ff250bd1c403d6e46133ee36452c2ea5ab0633e7 Mon Sep 17 00:00:00 2001 From: fofolee Date: Mon, 27 Jul 2020 20:25:14 +0800 Subject: [PATCH] fix shareCenter --- src/assets/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/assets/index.js b/src/assets/index.js index c786103..a918391 100644 --- a/src/assets/index.js +++ b/src/assets/index.js @@ -1216,8 +1216,10 @@ qc.fromShare = true $('#options').show() editCurrentCommand(qc) + $('#customize').data('returnShare', true) } else { $('#options').show() + $('#customize').removeData('returnShare') } utools.setExpendHeight(600) } @@ -1374,7 +1376,7 @@ putDB(code, pushData, 'customFts'); $("#customize").animate({ top: '100%' }, () => { $("#customize").empty() - if (extraInfo && extraInfo.fromShare) { + if ($('#customize').data('returnShare')) { getSharedQCFromYuQue() } else { // 保存后标签跳转处理 @@ -1503,8 +1505,7 @@ if ($("#customize").is(":parent") && $("#featureList").is(":parent")) { $("#customize").animate({ top: '100%' }); $("#customize").empty() - var extraInfo = $('#customize').data('extraInfo') - if (extraInfo && extraInfo.fromShare) getSharedQCFromYuQue() + if ($('#customize').data('returnShare')) getSharedQCFromYuQue() } }