@@ -171,20 +171,23 @@ class DebuggerComponent {
171171 debuggerElt . find ( `#${ debuggerInformation . id } -enable-checkbox` ) . on ( 'change' , function ( ) {
172172 const localDebuggerInformation = getGlobalConfig ( ) . findDebuggerById ( debuggerInformation . id ) ;
173173 localDebuggerInformation . enable = $ ( this ) . is ( ':checked' ) ;
174+ localDebuggerInformation . updateTime = new Date ( ) . getTime ( ) ;
174175 getGlobalConfig ( ) . persist ( ) ;
175176 } ) ;
176177
177178 // URL匹配类型
178179 debuggerElt . find ( `#${ debuggerInformation . id } -url-pattern` ) . change ( function ( ) {
179180 const localDebuggerInformation = getGlobalConfig ( ) . findDebuggerById ( debuggerInformation . id ) ;
180181 localDebuggerInformation . urlPatternType = $ ( this ) . val ( ) ;
182+ localDebuggerInformation . updateTime = new Date ( ) . getTime ( ) ;
181183 getGlobalConfig ( ) . persist ( ) ;
182184 } ) ;
183185
184186 // URL匹配值
185187 debuggerElt . find ( `#${ debuggerInformation . id } -url-pattern-text` ) . on ( 'input' , function ( ) {
186188 const localDebuggerInformation = getGlobalConfig ( ) . findDebuggerById ( debuggerInformation . id ) ;
187189 localDebuggerInformation . urlPattern = this . value ;
190+ localDebuggerInformation . updateTime = new Date ( ) . getTime ( ) ;
188191 getGlobalConfig ( ) . persist ( ) ;
189192 } ) ;
190193
@@ -200,34 +203,39 @@ class DebuggerComponent {
200203 debuggerElt . find ( `#${ debuggerInformation . id } -enableRequestDebugger-checkbox` ) . on ( 'change' , function ( ) {
201204 const localDebuggerInformation = getGlobalConfig ( ) . findDebuggerById ( debuggerInformation . id ) ;
202205 localDebuggerInformation . enableRequestDebugger = $ ( this ) . is ( ':checked' ) ;
206+ localDebuggerInformation . updateTime = new Date ( ) . getTime ( ) ;
203207 getGlobalConfig ( ) . persist ( ) ;
204208 } ) ;
205209
206210 // enableResponseDebugger
207211 debuggerElt . find ( `#${ debuggerInformation . id } -enableResponseDebugger-checkbox` ) . on ( 'change' , function ( ) {
208212 const localDebuggerInformation = getGlobalConfig ( ) . findDebuggerById ( debuggerInformation . id ) ;
209213 localDebuggerInformation . enableResponseDebugger = $ ( this ) . is ( ':checked' ) ;
214+ localDebuggerInformation . updateTime = new Date ( ) . getTime ( ) ;
210215 getGlobalConfig ( ) . persist ( ) ;
211216 } ) ;
212217
213218 // ${debuggerConfig.id}-hook-type
214219 debuggerElt . find ( `#${ debuggerInformation . id } -hook-type` ) . change ( function ( ) {
215220 const localDebuggerInformation = getGlobalConfig ( ) . findDebuggerById ( debuggerInformation . id ) ;
216221 localDebuggerInformation . hookType = $ ( this ) . val ( ) ;
222+ localDebuggerInformation . updateTime = new Date ( ) . getTime ( ) ;
217223 getGlobalConfig ( ) . persist ( ) ;
218224 } ) ;
219225
220226 // callbackFunctionParamName
221227 debuggerElt . find ( `#${ debuggerInformation . id } -callbackFunctionParamName-text` ) . on ( 'input' , function ( ) {
222228 const localDebuggerInformation = getGlobalConfig ( ) . findDebuggerById ( debuggerInformation . id ) ;
223229 localDebuggerInformation . callbackFunctionParamName = this . value ;
230+ localDebuggerInformation . updateTime = new Date ( ) . getTime ( ) ;
224231 getGlobalConfig ( ) . persist ( ) ;
225232 } ) ;
226233
227234 // 注释
228235 debuggerElt . find ( `#${ debuggerInformation . id } -comment-text` ) . on ( 'input' , function ( ) {
229236 const localDebuggerInformation = getGlobalConfig ( ) . findDebuggerById ( debuggerInformation . id ) ;
230237 localDebuggerInformation . comment = this . value ;
238+ localDebuggerInformation . updateTime = new Date ( ) . getTime ( ) ;
231239 getGlobalConfig ( ) . persist ( ) ;
232240 } ) ;
233241
0 commit comments