From 2bfe0c30989141535de2da8d3656c83957a7c223 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 21 八月 2023 11:28:56 +0800
Subject: [PATCH] 2023-08-21

---
 src/menu/datasource/index.jsx |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/menu/datasource/index.jsx b/src/menu/datasource/index.jsx
index 27d9a81..75faaeb 100644
--- a/src/menu/datasource/index.jsx
+++ b/src/menu/datasource/index.jsx
@@ -212,6 +212,14 @@
         delete res.setting.debugId
       }
 
+      if (res.setting.interType === 'system' && res.setting.sync === 'true') {
+        res.scripts && res.scripts.forEach(script => {
+          if (script.status === 'false' || script.position !== 'back') return
+
+          res.setting.sync = 'false'
+        })
+      }
+
       this.setState({loading: false, visible: false})
       this.props.updateConfig({...config, ...res})
     }, () => {

--
Gitblit v1.8.0