@yeeyoon/library 3.3.8 → 3.4.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.
@@ -1,3 +1,5 @@
1
+ @import '~antd/es/style/themes/default.less';
2
+
1
3
  .user-avatar-box {
2
4
  position: relative;
3
5
  display: inline-block;
package/lib/config/env.js CHANGED
@@ -56,6 +56,7 @@ const envHost = {
56
56
  const devHostPortMap = {
57
57
  iam: 8001,
58
58
  profile: 8003,
59
+ portrait: 8004,
59
60
  collab: 8009,
60
61
  bpm: 8010,
61
62
  zhongtai: 3001,
@@ -81,6 +81,9 @@ const request = extend({
81
81
  request.interceptors.response.use(async (response) => {
82
82
  const resp = await response.clone().json();
83
83
  const { data, code, message, msg, errormsg, success } = resp;
84
+ if (!data && !code && !message && !msg && !errormsg && !success) {
85
+ return response;
86
+ }
84
87
  const m = msg || message || errormsg;
85
88
  if (code !== 200 && code !== 201 && !success) {
86
89
  m !== '操作过于频繁' &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "3.3.8",
3
+ "version": "3.4.1",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {