w-web-perm 1.0.26 → 1.0.28

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/src/main.js CHANGED
@@ -9,7 +9,6 @@ import App from './App.vue'
9
9
  import store from './store/index.mjs'
10
10
  import ui from './plugins/mUI.mjs'
11
11
  import mDataSelectorSchema from './plugins/mDataSelectorSchema.mjs'
12
- // import mDataSupport from './plugins/mDataSupport.mjs'
13
12
  import * as s from './plugins/mShare.mjs'
14
13
  import ds from './schema/index.mjs'
15
14
  // console.log('ds', ds)
@@ -30,15 +29,11 @@ Vue.prototype.$alert = function() {
30
29
  //dssm
31
30
  let dssm = mDataSelectorSchema(ds)
32
31
 
33
- // //dspt
34
- // let dspt = mDataSupport(Vue.prototype)
35
-
36
32
  //prototype
37
33
  Vue.prototype.$ui = ui
38
34
  Vue.prototype.$t = ui.getKpText
39
35
  Vue.prototype.$s = s
40
36
  Vue.prototype.$dssm = dssm
41
- // Vue.prototype.$dspt = dspt
42
37
  Vue.prototype.$ds = ds
43
38
  Vue.prototype.$dg = {}
44
39
 
@@ -61,20 +56,20 @@ WServHapiClient({
61
56
  return token
62
57
  },
63
58
  getServerMethods: (_fapi) => {
64
- console.log('$fapi', _fapi)
59
+ // console.log('$fapi', _fapi)
65
60
  Vue.prototype.$fapi = _fapi
66
61
  _fapi.getWebInfor() //已有fapi時優先取得web資訊
67
62
  .then((wi) => {
68
- console.log('$fapi getWebInfor', wi)
63
+ // console.log('$fapi getWebInfor', wi)
69
64
  Vue.prototype.$store.commit(Vue.prototype.$store.types.UpdateWebInfor, wi)
70
- ui.setLang() //因更新webInfor得要重刷語系才能依照語言取得顯示文字
65
+ ui.setLang(null, 'get webInfor') //因更新webInfor可取得webName與webDescription, 得要重刷語系才能依照語言取得顯示文字
71
66
  })
72
67
  .catch((err) => {
73
68
  console.log(err)
74
69
  })
75
70
  },
76
71
  recvData: (r) => {
77
- console.log('sync data', r.tableName, r.data)
72
+ // console.log('sync data', r.tableName, r.data)
78
73
  Vue.prototype.$store.commit(Vue.prototype.$store.types.UpdateTableData, r)
79
74
  },
80
75
  getAfterUpdateTableTags: (r) => {
@@ -83,7 +78,7 @@ WServHapiClient({
83
78
  return
84
79
  }
85
80
  bFirstSync = true
86
- console.log('first-sync')
81
+ // console.log('first-sync')
87
82
  Vue.prototype.$store.commit(Vue.prototype.$store.types.UpdateSyncState, true)
88
83
  },
89
84
  })