system-phone 3.0.11-test → 3.0.11-test1

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.11-test",
3
+ "version": "3.0.11-test1",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -208,7 +208,7 @@ export default {
208
208
  })
209
209
  console.log('获取登陆信息:', ret.data)
210
210
 
211
- if ((ret.data.startsWith("{") || ret.data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code !== 200) {
211
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code !== 200) {
212
212
  throw {status: ret.data.code, message: ret.data.msg}
213
213
  }
214
214
 
@@ -221,7 +221,7 @@ export default {
221
221
  }
222
222
 
223
223
  // 设置登录人
224
- if ((ret.data.startsWith("{") || ret.data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
224
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
225
225
  Vue.user = Util.f = ret.data.data
226
226
  } else {
227
227
  Vue.user = Util.f = ret.data
@@ -236,7 +236,7 @@ export default {
236
236
  Vue.user.r = []
237
237
  rithtList.forEach(x => Vue.user.r.push(x.name))
238
238
  // 功能排序
239
- if ((ret.data.startsWith("{") || ret.data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
239
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
240
240
  Vue.functions = this.sortFunctions(ret.data.data.functions)
241
241
  } else {
242
242
  Vue.functions = this.sortFunctions(ret.data.functions)
@@ -277,7 +277,7 @@ export default {
277
277
  this.$androidUtil.setPreference('auto_login', this.showauto)
278
278
  }
279
279
  // 设置当前登录人信息
280
- if ((ret.data.startsWith("{") || ret.data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
280
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
281
281
  Vue.$login = {jwt: ret.data.data.id}
282
282
  } else {
283
283
  Vue.$login = {jwt: ret.data.id}
@@ -69,7 +69,7 @@ let asyncCheck = async function (self, url) {
69
69
  let res = await Vue.resetpost(`${url}/rs/user/modifypwd`, {data: user}, {resolveMsg: null, rejectMsg: null})
70
70
  console.log("手机端验证登陆原始密码")
71
71
  console.log(res.data)
72
- if ((res.data.startsWith("{") || res.data.startsWith("[")) && res.data.code && res.data.msg) {
72
+ if ((JSON.stringify(res.data).startsWith("{") || JSON.stringify(res.data).startsWith("[")) && res.data.code && res.data.msg) {
73
73
  if (res.data.code === 200) {
74
74
  that.$showMessage('修改密码成功!')
75
75
  if (that.sourse == 'login') {