esoftplay 0.0.122-a → 0.0.122-c

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.
@@ -354,7 +354,7 @@ export default class m {
354
354
  this.initTimeout(upload ? 120000 : this.timeout)
355
355
  if (debug == 1) esp.log(this.url + this.uri, options)
356
356
  this.fetchConf = { url: this.url + this.uri, options: options }
357
- //api_logger_init_time
357
+ //api_init_time
358
358
  fetch(this.url + this.uri, options).then(async (res) => {
359
359
  this.cancelTimeout()
360
360
  this.resStatus = res.status
@@ -13,18 +13,24 @@ export interface LibNavigationInjector {
13
13
  children?: any
14
14
  }
15
15
 
16
+ const config = require('../../../../config.json')
16
17
 
17
- export const state = useGlobalState({ 'bigbang/index': true })
18
+ let init = {
19
+ [config.config.home.member]: true,
20
+ [config.config.home.public]: true,
21
+ }
22
+
23
+ export const state = useGlobalState(init)
18
24
  function openNav(route: string, fun: Function) {
19
25
  state.set(Object.assign({}, state.get(), { [route]: true }))
20
26
  const open = () => {
21
27
  /* */ setTimeout(() => {
22
- if (state.get()[route]) {
23
- fun()
24
- } else {
25
- open()
26
- }
27
- });
28
+ if (state.get()[route]) {
29
+ fun()
30
+ } else {
31
+ open()
32
+ }
33
+ });
28
34
  }
29
35
  open()
30
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.122-a",
3
+ "version": "0.0.122-c",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",