system-phone 3.0.49-20 → 3.0.49-21

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": "system-phone",
3
- "version": "3.0.49-20",
3
+ "version": "3.0.49-21",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -65,20 +65,26 @@ import * as Util from '../../Util'
65
65
  import JSEncrypt from 'jsencrypt'
66
66
  //获取json配置文件
67
67
  let asyncReady = async function (self, url) {
68
- // 获取配置信息
69
- console.log("获取营收配置文件和参数【开始】")
70
- await self.$appdata.load(true)
71
- console.log("获取营收配置文件和参数【结束】,开始获取vue配置文件【开始】")
72
- let that = self
73
- let res = await Vue.resetget(`${url}/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
74
- that.$set('config', res.data)
75
- Vue.config2 = res.data
76
- // 判断是否需要弱密码校验
77
- if (self.config && self.config.telephone && self.config.telephone.LoginApp && "undefined" != typeof self.config.telephone.LoginApp.weakPassword) {
78
- self.weakPassword = self.config.telephone.LoginApp.weakPassword
68
+ try {
69
+ console.log("获取营收配置文件和参数【开始】")
70
+ await self.$appdata.load(true)
71
+ console.log("获取营收配置文件和参数【结束】,开始获取vue配置文件【开始】")
72
+ let that = self
73
+ let res = await Vue.resetget(`${url}/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
74
+ that.$set('config', res.data)
75
+ Vue.config2 = res.data
76
+ // 判断是否需要弱密码校验
77
+ if (self.config && self.config.telephone && self.config.telephone.LoginApp && "undefined" != typeof self.config.telephone.LoginApp.weakPassword) {
78
+ self.weakPassword = self.config.telephone.LoginApp.weakPassword
79
+ }
80
+ console.log("手机端获取.json文件")
81
+ console.log(JSON.stringify(self.config))
82
+ return true
83
+ } catch (error) {
84
+ // 此处业务数据装载异常不做任何处理,理论上不会有任何异常
85
+ self.$showMessage('登录系统: 获取配置文件失败,请检查网络后重新登陆!')
86
+ return false
79
87
  }
80
- console.log("手机端获取.json文件")
81
- console.log(JSON.stringify(self.config))
82
88
  }
83
89
 
84
90
  //装载业务数据