@zeedhi/teknisa-cli 1.82.0 → 1.83.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/teknisa-cli",
3
- "version": "1.82.0",
3
+ "version": "1.83.0",
4
4
  "description": "Teknisa CLI",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -34,5 +34,5 @@
34
34
  "/src",
35
35
  "/bin"
36
36
  ],
37
- "gitHead": "65208cfd85deaa60ad04ec03c6f04b6b95d8d214"
37
+ "gitHead": "a4b9ff9f2b1ab2c36addbfafbe5382c2798a6879"
38
38
  }
@@ -27,7 +27,7 @@ import jsonMetadataLocal from './config/jsonMetadataLocal.json';
27
27
  components: { ZdPage },
28
28
  })
29
29
  export default class App extends Vue {
30
- public mainPage = {
30
+ public mainPage: any = {
31
31
  local: false,
32
32
  type: 'post',
33
33
  path: 'notfound',
@@ -63,6 +63,9 @@ export default class App extends Vue {
63
63
  isVisible: true,
64
64
  itemsUrl: '',
65
65
  items: [],
66
+ events: {
67
+ onMounted: this.setMenu,
68
+ },
66
69
  };
67
70
 
68
71
  this.header = {
@@ -160,19 +163,12 @@ export default class App extends Vue {
160
163
  };
161
164
  }
162
165
 
163
- public mounted() {
164
- if (!this.isRouteLogin) {
165
- this.setMenu();
166
- }
167
- }
168
-
169
166
  private handleMessageEvent(event: any) {
170
167
  this.afterLogin(event.detail.userData);
171
168
  }
172
169
 
173
170
  private async afterLogin(userData: any) {
174
171
  await TekLibAuth.startSession(userData);
175
- this.setMenu();
176
172
  }
177
173
 
178
174
  private setMenu() {