vue2-client 1.8.116 → 1.8.117

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,8 +1,8 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.8.114 - 1.8.116 -2024-3-14 @张振宇**
5
- - 增加ql展示组件
4
+ **1.8.117 -2024-3-14 @张振宇**
5
+ - 如果是microapp环境 直接退出登录 由父应用进行提示
6
6
 
7
7
  **1.8.103-1.8.106 -2024-3-14 @张振宇**
8
8
  - 增加对话库功能
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.116",
3
+ "version": "1.8.117",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -188,7 +188,13 @@ function loadInterceptors () {
188
188
  if (code === 401) {
189
189
  if (!isReloginShow) {
190
190
  isReloginShow = true
191
- notification.open({
191
+ if (window.__MICRO_APP_ENVIRONMENT__) {
192
+ logout().then(() => {
193
+ isReloginShow = false
194
+ location.href = '/login'
195
+ })
196
+ } else {
197
+ notification.open({
192
198
  message: '系统提示',
193
199
  description: '登录状态已过期,请重新登录',
194
200
  btn: h => {
@@ -216,6 +222,7 @@ function loadInterceptors () {
216
222
  isReloginShow = false
217
223
  }
218
224
  })
225
+ }
219
226
  }
220
227
  } else if (code === 500) {
221
228
  if (requestUrl !== '/login') {