File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
client/packages/lowcoder/src/comps/hooks Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ LocalStorageComp = withMethodExposing(LocalStorageComp, [
61
61
const parseStore = JSON . parse ( originStore ) ;
62
62
parseStore [ key ] = value ;
63
63
localStorage . setItem ( APP_STORE_NAMESPACE , JSON . stringify ( parseStore ) ) ;
64
+ comp . children . values . dispatchChangeValueAction ( parseStore ) ;
64
65
} catch ( e ) {
65
66
localStorage . setItem ( APP_STORE_NAMESPACE , "{}" ) ;
66
67
}
@@ -81,6 +82,7 @@ LocalStorageComp = withMethodExposing(LocalStorageComp, [
81
82
const parseStore = JSON . parse ( originStore ) ;
82
83
delete parseStore [ key ] ;
83
84
localStorage . setItem ( APP_STORE_NAMESPACE , JSON . stringify ( parseStore ) ) ;
85
+ comp . children . values . dispatchChangeValueAction ( parseStore ) ;
84
86
} catch ( e ) {
85
87
localStorage . setItem ( APP_STORE_NAMESPACE , "{}" ) ;
86
88
}
@@ -93,8 +95,9 @@ LocalStorageComp = withMethodExposing(LocalStorageComp, [
93
95
description : trans ( "localStorageComp.clearItemDesc" ) ,
94
96
params : [ ] ,
95
97
} ,
96
- execute : ( ) => {
98
+ execute : ( comp ) => {
97
99
localStorage . removeItem ( APP_STORE_NAMESPACE ) ;
100
+ comp . children . values . dispatchChangeValueAction ( { } ) ;
98
101
} ,
99
102
} ,
100
103
] ) ;
You can’t perform that action at this time.
0 commit comments