vue2-client 1.4.34 → 1.4.36

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,14 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
+ **1.4.36 -2022-10-18 @江超**
5
+ - 功能修改:
6
+ - 修改单页面相关逻辑
7
+
8
+ **1.4.35 -2022-10-17 @苗艳强**
9
+ - 功能修改:
10
+ - XFormTable的刷新方法可指定是否回到第一页
11
+
4
12
  **1.4.33 - 1.4.34 -2022-10-15 @江超**
5
13
  - 功能修改:
6
14
  - 修改单页面相关逻辑
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.4.34",
3
+ "version": "1.4.36",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -235,8 +235,8 @@ export default {
235
235
  }
236
236
  },
237
237
  methods: {
238
- refreshTable () {
239
- this.$refs.xTable.refresh(true)
238
+ refreshTable (toFirstPage = true) {
239
+ this.$refs.xTable.refresh(toFirstPage)
240
240
  },
241
241
  clearRowKeys () {
242
242
  this.$refs.xTable.clearRowKeys()
@@ -40,7 +40,7 @@ export function CASLoginByAuth (serviceKey) {
40
40
  export function CASLogin (serviceKey, inner) {
41
41
  // 从第三方跳转登录
42
42
  const tgc = getTGTCookie()
43
- if (tgc) {
43
+ if (tgc && !inner) {
44
44
  return new Promise((resolve, reject) => {
45
45
  post(casApi.createSTByTGC, {
46
46
  serviceKey: serviceKey,
@@ -56,11 +56,7 @@ export function CASLogin (serviceKey, inner) {
56
56
  })
57
57
  logout().then(() => {
58
58
  setTimeout(() => {
59
- if (inner) {
60
- window.location.href = '/login'
61
- } else {
62
- window.location.href = '/login?serviceKey=' + serviceKey
63
- }
59
+ window.location.href = '/login?serviceKey=' + serviceKey
64
60
  }, 1500)
65
61
  })
66
62
  } else {