shishuangxi

删除登录信息回调

@@ -11,7 +11,6 @@ const TAG = 'MainPage'; @@ -11,7 +11,6 @@ const TAG = 'MainPage';
11 @Entry 11 @Entry
12 @Component 12 @Component
13 struct MainPage { 13 struct MainPage {
14 - @Provide('isLogin') isLogin:Record<string,string>={}  
15 14
16 private breakpointSystem: BreakpointSystem = new BreakpointSystem() 15 private breakpointSystem: BreakpointSystem = new BreakpointSystem()
17 @StorageLink('currentBreakpoint') @Watch('watchCurrentBreakpoint') currentBreakpoint: string = BreakpointConstants.BREAKPOINT_XS; 16 @StorageLink('currentBreakpoint') @Watch('watchCurrentBreakpoint') currentBreakpoint: string = BreakpointConstants.BREAKPOINT_XS;
@@ -34,11 +33,6 @@ struct MainPage { @@ -34,11 +33,6 @@ struct MainPage {
34 Logger.info(TAG, 'aboutToDisappear'); 33 Logger.info(TAG, 'aboutToDisappear');
35 } 34 }
36 35
37 - onPageShow() {  
38 - Logger.info(TAG, 'onPageShow');  
39 - let params=router.getParams() as Record<string,string>  
40 - this.isLogin=params  
41 - }  
42 36
43 onPageHide() { 37 onPageHide() {
44 Logger.info(TAG, 'onPageHide'); 38 Logger.info(TAG, 'onPageHide');