vue2-client 1.4.26 → 1.4.27

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/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
+ **1.4.27 -2022-10-06 @江超**
5
+ - 功能修改:
6
+ - 修改v4登录获取信息方式
7
+
8
+
4
9
  **1.4.26 -2022-09-29 @苗艳强**
5
10
  - 功能修改:
6
11
  - 售后工单页面接收到客户信息传参后还可修改
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.4.26",
3
+ "version": "1.4.27",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -116,22 +116,16 @@ export default {
116
116
  },
117
117
  afterLoginV4 (res) {
118
118
  this.setV4AccessToken(res)
119
- // 获取用户信息
120
- V4GetInfo().then(result => {
121
- const data = result.routes
122
- this.$login.login(data).then(() => {
123
- this.afterGeneral(data)
124
- if (data.deps === '用户工单登记') {
125
- this.$router.push(this.ticketPage).catch(() => {
126
- })
127
- } else {
128
- this.$router.push(this.homePage).catch(() => {
129
- })
130
- }
131
- })
132
- }).catch(msg => {
133
- this.error = msg
134
- this.logging = false
119
+ const data = res.resources
120
+ this.$login.login(data).then(() => {
121
+ this.afterGeneral(data)
122
+ if (data.deps === '用户工单登记') {
123
+ this.$router.push(this.ticketPage).catch(() => {
124
+ })
125
+ } else {
126
+ this.$router.push(this.homePage).catch(() => {
127
+ })
128
+ }
135
129
  })
136
130
  },
137
131
  afterLogin (res) {
@@ -6,7 +6,6 @@ module.exports = {
6
6
  LOGIN: `/rs/logic/getLogin`,
7
7
  V4_LOGIN: '/auth/login',
8
8
  V4_LOGOUT: '/auth/logout',
9
- V4_GET_INFO: '/api/af-system/logic/getInfo',
10
9
  ROUTES: `/rs/user/userLogin/智慧燃气`,
11
10
  SEARCH: `/rs/search`,
12
11
  GOODS: `/goods`,