Ver código fonte

版本1.0.7,菜单bug fix

panxingxin 5 anos atrás
pai
commit
a967712fb2
2 arquivos alterados com 3 adições e 1 exclusões
  1. 1 1
      config.xml
  2. 2 0
      src/app/app.component.ts

+ 1 - 1
config.xml

@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='utf-8'?>
-<widget id="io.ionic.starter" version="1.0.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+<widget id="io.ionic.starter" version="1.0.7" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
     <name>SG扫描</name>
     <description>An awesome Ionic/Cordova app.</description>
     <author email="hi@ionicframework.com" href="http://ionicframework.com/">Ionic Framework Team</author>

+ 2 - 0
src/app/app.component.ts

@@ -160,10 +160,12 @@ export class AppComponent {
   listenForLoginEvents() {
     this.events.subscribe('user:login', () => {
       this.initWebSocket()
+      this.getMenuList()
       this.updateLoggedInStatus(true);
     });
     this.events.subscribe('user:logout', () => {
       this.updateLoggedInStatus(false);
+      this.menuList = []
     });
   }
   async logout() {