From 34b2318a5ba8211b56075b9c079f1097a221415f Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 19 Jul 2023 15:23:22 +0800 Subject: [PATCH] fix --- src/mixins/page/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mixins/page/index.js b/src/mixins/page/index.js index 4b940df..3010332 100644 --- a/src/mixins/page/index.js +++ b/src/mixins/page/index.js @@ -71,15 +71,14 @@ export default { this.id = json.id const str = json[json.state ? 'theEditedJson' : 'jsonBeforeEditing'] const list = JSON.parse(str) - this.originModules = str // 原始json,用以页面离开的时候判断是否需要提示保存 list.map((e, i) => { - console.log("🚀 ~ file: index.js:77 ~ list.map ~ e:", e, this.modules[i]) if (this.modules[i].forms) e.forms = this.modules[i].forms if (this.withOriginForm.includes(e.type) && !e.originForm) { e.originForm = modules[i].originForm } }) + this.originModules = JSON.stringify(list) // 原始json,用以页面离开的时候判断是否需要提示保存 this.modules = list console.log("🚀 ~ file: index.js:85 ~ this.$post ~ list:", list) }