vue2-client 1.4.15 → 1.4.16

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.4.15 -2022-09-26 @江超**
4
+ **1.4.15 - 1.4.16 -2022-09-26 @江超**
5
5
  - 功能修改:
6
6
  - 新增操作日志,登录日志页面
7
7
  - 修改单页面框架逻辑
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.4.15",
3
+ "version": "1.4.16",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -57,19 +57,21 @@ export default {
57
57
  methods: {
58
58
  ...mapMutations('account', ['setLogin']),
59
59
  load () {
60
- const appdata = {
61
- singleValues: this.$appdata.getSingleValues(),
62
- params: this.$appdata.getParams()
63
- }
64
- const data = {
65
- token: localStorage.getItem(ACCESS_TOKEN),
66
- login: this.login,
67
- appdata: appdata,
68
- page: this.singlePageUrl
69
- }
70
- console.log('发送参数', data)
71
- if (this.iframe) {
72
- this.iframe.postMessage(data, '*')
60
+ if (this.singlePageUrl.indexOf('http') === -1) {
61
+ const appdata = {
62
+ singleValues: this.$appdata.getSingleValues(),
63
+ params: this.$appdata.getParams()
64
+ }
65
+ const data = {
66
+ token: localStorage.getItem(ACCESS_TOKEN),
67
+ login: this.login,
68
+ appdata: appdata,
69
+ page: this.singlePageUrl
70
+ }
71
+ console.log('发送参数', data)
72
+ if (this.iframe) {
73
+ this.iframe.postMessage(data, '*')
74
+ }
73
75
  }
74
76
  this.$emit('load', this.fullPath)
75
77
  }