vue2-client 1.6.26 → 1.6.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,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.6.26 -2023-04-16 @江超**
4
+ **1.6.26 - 1.6.27 -2023-04-16 @江超**
5
5
  - 修复单页面iframe对http前缀的兼容处理
6
6
 
7
7
  **1.6.23 - 1.6.25 -2023-04-11 @江超**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.6.26",
3
+ "version": "1.6.27",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -44,7 +44,7 @@ export default {
44
44
  },
45
45
  computed: {
46
46
  ...mapState('setting', ['animate', 'iframeSrc']),
47
- ...mapState('account', ['login'])
47
+ ...mapState('account', { login: 'login', currUser: 'user' })
48
48
  },
49
49
  created () {
50
50
  this.isLoaded = false
@@ -66,6 +66,9 @@ export default {
66
66
  this.$message.error(msg)
67
67
  })
68
68
  } else if (this.singlePageUrl.indexOf('http') !== -1) {
69
+ if (this.singlePageUrl.indexOf('?goto=') !== -1) {
70
+ this.singlePageUrl = this.singlePageUrl + '&f_user_id=' + this.currUser.username + '&password=' + this.currUser.password
71
+ }
69
72
  this.url = this.singlePageUrl
70
73
  } else {
71
74
  this.url = this.iframeSrc
@@ -185,7 +185,9 @@ export default {
185
185
  },
186
186
  afterGeneral (result) {
187
187
  const user = Object.assign({
188
+ id: result.id,
188
189
  username: result.ename,
190
+ password: this.form.getFieldValue('password'),
189
191
  name: result.name,
190
192
  avatar: 'https://gw.alipayobjects.com/zos/rmsportal/jZUIxmJycoymBprLOUbT.png',
191
193
  address: '西安市',