vue2-client 1.8.115 → 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.115 -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.115",
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",
@@ -34,7 +34,9 @@ export default {
34
34
  },
35
35
  styleObj: {
36
36
  type: Object,
37
- default: () => { return { fontSize: '16px' } }
37
+ default: () => {
38
+ return { fontSize: '16px' }
39
+ }
38
40
  },
39
41
  theme: {
40
42
  type: String,
@@ -95,18 +97,22 @@ export default {
95
97
 
96
98
  @font-face {
97
99
  font-family: 'JetBrains Mono';
98
- src: url('@vue2-client/assets/ttf/JetBrainsMono-Light.woff2') format('woff2'), /* 字体文件路径和格式 */
99
- url('@vue2-client/assets/ttf/JetBrainsMono-Light.woff2') format('woff');
100
+ src: url('@vue2-client/assets/ttf/JetBrainsMono-Light.woff2') format('woff2'), /* 字体文件路径和格式 */ url('@vue2-client/assets/ttf/JetBrainsMono-Light.woff2') format('woff');
101
+ }
102
+
103
+ :deep(.CodeMirror) {
104
+ height: 100%;
100
105
  }
101
106
 
102
107
  .code-mirror {
108
+ height: 100%;
103
109
  line-height: 150%;
104
110
  text-align: left;
105
- font-family: "JetBrains Mono",serif !important;
111
+ font-family: "JetBrains Mono", serif !important;
106
112
  }
107
113
 
108
- :deep(.CodeMirror-line),:deep(.CodeMirror-line-like) {
109
- font-family: "JetBrains Mono",serif !important;
114
+ :deep(.CodeMirror-line), :deep(.CodeMirror-line-like) {
115
+ font-family: "JetBrains Mono", serif !important;
110
116
  }
111
117
 
112
118
  </style>
@@ -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') {