system-phone 3.0.40 → 3.0.41

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.
@@ -208,8 +208,10 @@ export default {
208
208
  })
209
209
  console.log('获取登陆信息:', ret.data)
210
210
  //秦华---(siteId==站点id)===============(flatId==平板id)
211
- this.$androidUtil.setPreference('siteId', ret.data.f_extend1 || "")
212
- this.$androidUtil.setPreference('flatId', ret.data.f_extend2 || "")
211
+ this.$androidUtil.setPreference('siteId', ret.data.f_extend1 || '')
212
+ this.$androidUtil.setPreference('flatId', ret.data.f_extend2 || '')
213
+ this.$androidUtil.setPreference('name', ret.data.name || '')
214
+ this.$androidUtil.setPreference('ename', ret.data.ename || '')
213
215
  if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code !== 200) {
214
216
  throw {status: ret.data.code, message: ret.data.msg}
215
217
  }
@@ -217,7 +219,7 @@ export default {
217
219
  } catch (e) {
218
220
  if (Vue.android) {
219
221
  this.loaderShow = false
220
- this.$showMessage(e.message ? e.message : '登录失败!用户名或密码错误!')
222
+ this.$showMessage(e.message ? e.message : '服务器内部错误!')
221
223
  }
222
224
  return
223
225
  }