vue2-client 1.4.55 → 1.4.56

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,11 +1,10 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.4.54 -2022-11-21 @陈栋杨**
4
+ **1.4.54 - 1.4.56 -2022-11-25 @江超**
5
5
  - 现在登录时会清除indexedDB缓存了
6
-
7
- **1.4.54 - 1.4.55 -2022-11-25 @江超**
8
6
  - 增加查询系统访问记录的接口
7
+ - 优化单页面组件显示效果
9
8
 
10
9
  **1.4.53 -2022-11-21 @陈栋杨**
11
10
  - 优化单页面组件传值方式
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.4.55",
3
+ "version": "1.4.56",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,16 +1,17 @@
1
1
  <template>
2
2
  <page-toggle-transition :disabled="animate.disabled" :animate="animate.name" :direction="animate.direction">
3
3
  <template v-if="login">
4
- <div style="padding-top: 1px; background-color: #fff;">
5
- <iframe
6
- ref="singlepage"
7
- :src="url"
8
- :name="this.fullPath"
9
- class="single-page-iframe"
10
- sandbox="allow-forms allow-scripts allow-same-origin allow-top-navigation"
11
- @load="load">
12
- </iframe>
13
- </div>
4
+ <a-spin tip="加载中,马上好" :spinning="!isLoaded">
5
+ <a-card>
6
+ <iframe
7
+ ref="singlepage"
8
+ :src="url"
9
+ :name="this.fullPath"
10
+ class="single-page-iframe"
11
+ @load="load">
12
+ </iframe>
13
+ </a-card>
14
+ </a-spin>
14
15
  </template>
15
16
  </page-toggle-transition>
16
17
  </template>
@@ -37,7 +38,8 @@ export default {
37
38
  data () {
38
39
  return {
39
40
  iframe: null,
40
- url: ''
41
+ url: '',
42
+ isLoaded: false,
41
43
  }
42
44
  },
43
45
  computed: {
@@ -45,6 +47,7 @@ export default {
45
47
  ...mapState('account', ['login'])
46
48
  },
47
49
  created () {
50
+ this.isLoaded = false
48
51
  if (this.singlePageUrl.indexOf('sso:') !== -1) {
49
52
  const serviceKey = this.singlePageUrl.substring(4)
50
53
  CASLogin(serviceKey, true).then(res => {
@@ -93,6 +96,7 @@ export default {
93
96
  }
94
97
  }
95
98
  this.$emit('load', this.fullPath)
99
+ this.isLoaded = true
96
100
  }
97
101
  }
98
102
  }