n20-common-lib 2.8.39 → 2.9.1
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/package.json +1 -1
- package/src/assets/css/layout-content.scss +4 -0
- package/src/assets/css/normalize.scss +4 -1
- package/src/utils/axios.js +4 -4
- package/style/index.css +3 -3
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
.content-box {
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
+
-webkit-box-sizing: border-box; /* Safari/Chrome */
|
|
4
|
+
-moz-box-sizing: border-box; /* Firefox */
|
|
3
5
|
margin: 0 8px 8px 8px;
|
|
4
6
|
padding: 8px;
|
|
5
7
|
border-radius: 0 0 6px 6px;
|
|
8
|
+
-webkit-border-radius: 0 0 6px 6px; /* Safari/Chrome */
|
|
9
|
+
-moz-border-radius: 0 0 6px 6px; /* Firefox */
|
|
6
10
|
height: var(--client-height);
|
|
7
11
|
background: $--color-white;
|
|
8
12
|
overflow: auto;
|
|
@@ -287,6 +287,7 @@ iframe {
|
|
|
287
287
|
.block {
|
|
288
288
|
display: block;
|
|
289
289
|
}
|
|
290
|
+
|
|
290
291
|
.inline_block {
|
|
291
292
|
display: inline-block;
|
|
292
293
|
}
|
|
@@ -669,7 +670,9 @@ $list: 45, 60, 80, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 2
|
|
|
669
670
|
}
|
|
670
671
|
}
|
|
671
672
|
|
|
673
|
+
/* height: 100%; 速龙浏览器下子元素无法继承父元素的高速度 */
|
|
672
674
|
.n20-page-content {
|
|
675
|
+
height: 100%;
|
|
673
676
|
overflow-y: auto;
|
|
674
677
|
overflow-x: hidden;
|
|
675
678
|
}
|
|
@@ -861,4 +864,4 @@ $list: 45, 60, 80, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 2
|
|
|
861
864
|
transform: translateY(0);
|
|
862
865
|
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
863
866
|
}
|
|
864
|
-
}
|
|
867
|
+
}
|
package/src/utils/axios.js
CHANGED
|
@@ -93,7 +93,7 @@ axios.interceptors.request.use((opt) => {
|
|
|
93
93
|
})
|
|
94
94
|
|
|
95
95
|
function errorFn(status, msg, noMsg, isErr, res) {
|
|
96
|
-
if (status === 401
|
|
96
|
+
if (status === 401) {
|
|
97
97
|
noMsg || showMsg($lc('超时未操作,请重新登录!'))
|
|
98
98
|
setTimeout(() => {
|
|
99
99
|
if (navigator.userAgent.includes('NSTC-WebEntry')) {
|
|
@@ -104,11 +104,11 @@ function errorFn(status, msg, noMsg, isErr, res) {
|
|
|
104
104
|
auth.removeToken()
|
|
105
105
|
}
|
|
106
106
|
}, 1000)
|
|
107
|
-
} else if (status === 400
|
|
107
|
+
} else if (status === 400 ) {
|
|
108
108
|
noMsg || showMsg($lc('400,参数错误!'))
|
|
109
|
-
} else if (status === 404
|
|
109
|
+
} else if (status === 404 ) {
|
|
110
110
|
noMsg || showMsg($lc('404,网络连接失败!'))
|
|
111
|
-
} else if (status === 500
|
|
111
|
+
} else if (status === 500) {
|
|
112
112
|
noMsg || showMsg($lc('500,服务器链接失败!'))
|
|
113
113
|
} else if (status === 'ECONNABORTED' && msg.includes('timeout')) {
|
|
114
114
|
noMsg || showMsg($lc('请求超时'))
|