wl-design-mobile 0.8.19 → 0.8.21

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.
Files changed (101) hide show
  1. package/README.md +6 -6
  2. package/api/doc.js +25 -25
  3. package/api/x1.js +56 -56
  4. package/btn/components/lambo-info-btn.vue +123 -123
  5. package/btn/components/lambo-primary-btn.vue +117 -117
  6. package/btn/components/lambo-text-btn.vue +116 -116
  7. package/btn/lambo-btn-divide.vue +35 -120
  8. package/btn/lambo-btn-group.vue +46 -46
  9. package/btn/lambo-btn-split-line.vue +41 -41
  10. package/btn/lambo-btn.vue +68 -68
  11. package/btn/lambo-extend-btn.vue +121 -121
  12. package/btn/lambo-icon-btn.vue +82 -82
  13. package/card-item/card-row-icon.vue +71 -71
  14. package/card-item/filtrate-row.vue +73 -73
  15. package/card-item/lambo-card-footer.vue +40 -40
  16. package/card-item/lambo-card-head.vue +66 -66
  17. package/card-item/lambo-card-row.vue +59 -59
  18. package/collapse/lambo-collapse.vue +93 -93
  19. package/config/config.js +14 -14
  20. package/detail/lambo-detail-grid.vue +58 -58
  21. package/detail/lambo-detail-row.vue +59 -59
  22. package/doc/file/compoents/lambo-file-list.vue +42 -42
  23. package/doc/file/compoents/lambo-file-row.vue +77 -77
  24. package/doc/file/lambo-file-upload-collapse.vue +107 -107
  25. package/doc/file-type/file-type.js +286 -286
  26. package/doc/img/comonents/lambo-img-grid.vue +109 -109
  27. package/doc/img/lambo-img-upload-collapse.vue +107 -107
  28. package/doc/img/styles/css/index.css +3 -3
  29. package/edit/list/Lambo-edit-list.vue +87 -87
  30. package/edit/list/lambo-edit-card-group.vue +100 -100
  31. package/edit/list/styles/css/index.css +39 -39
  32. package/edit/select/lambo-edit-date-range.vue +147 -147
  33. package/edit/select/lambo-edit-date-time.vue +122 -122
  34. package/edit/select/lambo-edit-date.vue +120 -120
  35. package/edit/select/lambo-edit-input-textarea.vue +91 -91
  36. package/edit/select/lambo-edit-input.vue +91 -91
  37. package/edit/select/lambo-edit-multi-select.vue +168 -168
  38. package/edit/select/lambo-edit-search-single-select.vue +186 -186
  39. package/edit/select/lambo-edit-single-select.vue +162 -162
  40. package/edit/select/styles/css/index.css +133 -133
  41. package/flow/approval/flow-approval.vue +552 -552
  42. package/flow/comps/flow-attachment-list.vue +230 -230
  43. package/flow/comps/flow-attachment-modal.vue +194 -194
  44. package/flow/comps/flow-copy-users.vue +358 -358
  45. package/flow/comps/flow-node-card.vue +150 -150
  46. package/flow/comps/flow-node-header.vue +172 -172
  47. package/flow/comps/flow-util.js +156 -156
  48. package/flow/comps/icons/approved.svg +11 -11
  49. package/flow/comps/icons/canceled.svg +11 -11
  50. package/flow/comps/icons/rejected.svg +11 -11
  51. package/flow/comps/icons/underway.svg +11 -11
  52. package/flow/detail/flow-detail.vue +467 -467
  53. package/flow/index.js +51 -51
  54. package/flow/lambo-flow-detail.vue +912 -912
  55. package/flow/lambo-flow-edit.vue +15 -15
  56. package/flow/submit/flow-submit.vue +383 -383
  57. package/icon/lambo-required-red-star.vue +47 -47
  58. package/icon/lambo-vector-icon.vue +71 -71
  59. package/list/lambo-list.vue +412 -413
  60. package/nav/lambo-top-nav.vue +81 -81
  61. package/order/comps/icons/approved.svg +10 -10
  62. package/order/comps/icons/underway.svg +10 -10
  63. package/order/comps/order-attachment-list.vue +228 -228
  64. package/order/comps/order-attachment-modal.vue +194 -194
  65. package/order/comps/order-node-card.vue +126 -126
  66. package/order/comps/order-node-header.vue +133 -133
  67. package/order/comps/order-util.js +132 -132
  68. package/order/detail/order-detail.vue +432 -432
  69. package/order/handle/order-handle.vue +517 -517
  70. package/order/index.js +33 -33
  71. package/package.json +38 -37
  72. package/search/lambo-date-range-page.vue +196 -196
  73. package/search/lambo-date-range.vue +111 -111
  74. package/search/lambo-date.vue +105 -105
  75. package/search/lambo-input.vue +74 -74
  76. package/search/lambo-multi-select.vue +129 -129
  77. package/search/lambo-org-select-page.vue +109 -109
  78. package/search/lambo-search-box.vue +61 -61
  79. package/search/lambo-search-single-select.vue +152 -152
  80. package/search/lambo-single-select.vue +123 -123
  81. package/search/lambo-week-date-select.vue +521 -521
  82. package/search/styles/css/index.css +138 -138
  83. package/styles/base.less +77 -77
  84. package/styles/components/btn.less +7 -7
  85. package/styles/components/search.less +33 -33
  86. package/styles/components/tag.less +181 -181
  87. package/styles/index.less +4 -4
  88. package/table/lambo-ag-table.vue +227 -227
  89. package/tag/lambo-tag.vue +23 -23
  90. package/title/lambo-title1.vue +151 -151
  91. package/title/lambo-title2.vue +37 -37
  92. package/title/lambo-title3.vue +77 -77
  93. package/util/assist.js +43 -43
  94. package/util/axios/cacheconf.js +19 -19
  95. package/util/axios/index.js +11 -11
  96. package/util/axios/interceptors.js +101 -101
  97. package/util/bus.js +4 -4
  98. package/util/jssdk-sczy.js +104 -104
  99. package/util/jssdk.js +608 -565
  100. package/util/math.js +76 -76
  101. package/util/token.js +36 -36
@@ -1,151 +1,151 @@
1
- <template>
2
- <div class="title1-box" :style="computedStyle">
3
- <div class="title1-main">
4
- <div class="title1-main-left">
5
- <img class="title1-icon" :src="icon" />
6
- <span class="title1-val">
7
- {{ title }}
8
- </span>
9
- </div>
10
- <div class="top-btn-div">
11
- <div class="opt-btn-div">
12
- <slot name="opt"></slot>
13
- </div>
14
- </div>
15
- </div>
16
- <div class="title1-sub" v-if="titleSub">
17
- <span class="title1-sub-text">
18
- {{titleSub}}
19
- </span>
20
- </div>
21
- <div class="title1-border-line" v-if="border"></div>
22
- </div>
23
- </template>
24
- <script>
25
- import editPageIcon from '../assets/img/title1-edit-page.png'
26
-
27
- export default {
28
- name: 'LamboTitle1',
29
- components: {},
30
- props: {
31
- icon: {
32
- type: String,
33
- default: editPageIcon,
34
- },
35
- title: {
36
- type: String,
37
- },
38
- titleSub: {
39
- type: String,
40
- },
41
- marginBottom: {
42
- type: Boolean,
43
- default: true,
44
- },
45
- border: {
46
- type: Boolean,
47
- default: true,
48
- },
49
- },
50
- data() {
51
- return {}
52
- },
53
- methods: {},
54
- computed: {
55
- computedStyle() {
56
- return {
57
- marginBottom: this.marginBottom===true?'8px':'0px'
58
- }
59
- },
60
- }
61
- }
62
- </script>
63
- <style scoped>
64
- @import "../styles/index.less";
65
-
66
- .title1-box {
67
- display: flex;
68
- flex-direction: column;
69
- }
70
-
71
- .title1-main {
72
- min-height: 47px;
73
- display: flex;
74
- flex-direction: row;
75
- flex-wrap: wrap;
76
- justify-content: space-between;
77
- align-items: center;
78
- align-content: center;
79
- background-color: var(--scl-white-1);
80
- padding: 5px 14px;
81
- }
82
-
83
- .title1-border-line {
84
- height: 1px;
85
- margin: 0 14px 0 14px;
86
- background-color: var(--scl-white-2);
87
- }
88
-
89
- .title1-icon {
90
- width: 23px;
91
- height: 23px;
92
- }
93
-
94
- .title1-main-left {
95
- display: flex;
96
- align-items: center;
97
- align-content: center;
98
- justify-content: center;
99
- }
100
-
101
- .title1-val {
102
- padding: 0;
103
- font-size: 16px;
104
- border: none;
105
- line-height: 23px;
106
- margin-left: 8px;
107
- font-weight: bold;
108
- }
109
-
110
- .top-btn-div {
111
- display: flex;
112
- flex-direction: row;
113
- flex-wrap: wrap;
114
- justify-content: flex-start;
115
- align-items: center;
116
- align-content: flex-start;
117
- margin-left: auto;
118
- background-color: var(--scl-white-1);
119
- }
120
-
121
- .opt-btn-div {
122
- display: flex;
123
- flex-direction: row;
124
- flex-wrap: wrap;
125
- justify-content: flex-start;
126
- align-items: center;
127
- align-content: flex-start;
128
- flex: 1;
129
- }
130
-
131
- /* 控制 .opt-btn-div 内的元素的右边距为 6px */
132
- .opt-btn-div > * {
133
- margin-right: 6px;
134
- border-radius: 3px;
135
- }
136
-
137
- /* 控制 .opt-btn-div 内的最后一个元素的右边距为 0px */
138
- .opt-btn-div > *:last-child {
139
- margin-right: 0px;
140
- }
141
-
142
- .title1-sub{
143
- background-color: var(--scl-white-1);
144
- }
145
-
146
- .title1-sub-text{
147
- margin: 0 14px 5px 14px;
148
- color:var(--scl-gray-3);
149
- font-size: 14px;
150
- }
151
- </style>
1
+ <template>
2
+ <div class="title1-box" :style="computedStyle">
3
+ <div class="title1-main">
4
+ <div class="title1-main-left">
5
+ <img class="title1-icon" :src="icon" />
6
+ <span class="title1-val">
7
+ {{ title }}
8
+ </span>
9
+ </div>
10
+ <div class="top-btn-div">
11
+ <div class="opt-btn-div">
12
+ <slot name="opt"></slot>
13
+ </div>
14
+ </div>
15
+ </div>
16
+ <div class="title1-sub" v-if="titleSub">
17
+ <span class="title1-sub-text">
18
+ {{titleSub}}
19
+ </span>
20
+ </div>
21
+ <div class="title1-border-line" v-if="border"></div>
22
+ </div>
23
+ </template>
24
+ <script>
25
+ import editPageIcon from '../assets/img/title1-edit-page.png'
26
+
27
+ export default {
28
+ name: 'LamboTitle1',
29
+ components: {},
30
+ props: {
31
+ icon: {
32
+ type: String,
33
+ default: editPageIcon,
34
+ },
35
+ title: {
36
+ type: String,
37
+ },
38
+ titleSub: {
39
+ type: String,
40
+ },
41
+ marginBottom: {
42
+ type: Boolean,
43
+ default: true,
44
+ },
45
+ border: {
46
+ type: Boolean,
47
+ default: true,
48
+ },
49
+ },
50
+ data() {
51
+ return {}
52
+ },
53
+ methods: {},
54
+ computed: {
55
+ computedStyle() {
56
+ return {
57
+ marginBottom: this.marginBottom===true?'8px':'0px'
58
+ }
59
+ },
60
+ }
61
+ }
62
+ </script>
63
+ <style scoped>
64
+ @import "../styles/index.less";
65
+
66
+ .title1-box {
67
+ display: flex;
68
+ flex-direction: column;
69
+ }
70
+
71
+ .title1-main {
72
+ min-height: 47px;
73
+ display: flex;
74
+ flex-direction: row;
75
+ flex-wrap: wrap;
76
+ justify-content: space-between;
77
+ align-items: center;
78
+ align-content: center;
79
+ background-color: var(--scl-white-1);
80
+ padding: 5px 14px;
81
+ }
82
+
83
+ .title1-border-line {
84
+ height: 1px;
85
+ margin: 0 14px 0 14px;
86
+ background-color: var(--scl-white-2);
87
+ }
88
+
89
+ .title1-icon {
90
+ width: 23px;
91
+ height: 23px;
92
+ }
93
+
94
+ .title1-main-left {
95
+ display: flex;
96
+ align-items: center;
97
+ align-content: center;
98
+ justify-content: center;
99
+ }
100
+
101
+ .title1-val {
102
+ padding: 0;
103
+ font-size: 16px;
104
+ border: none;
105
+ line-height: 23px;
106
+ margin-left: 8px;
107
+ font-weight: bold;
108
+ }
109
+
110
+ .top-btn-div {
111
+ display: flex;
112
+ flex-direction: row;
113
+ flex-wrap: wrap;
114
+ justify-content: flex-start;
115
+ align-items: center;
116
+ align-content: flex-start;
117
+ margin-left: auto;
118
+ background-color: var(--scl-white-1);
119
+ }
120
+
121
+ .opt-btn-div {
122
+ display: flex;
123
+ flex-direction: row;
124
+ flex-wrap: wrap;
125
+ justify-content: flex-start;
126
+ align-items: center;
127
+ align-content: flex-start;
128
+ flex: 1;
129
+ }
130
+
131
+ /* 控制 .opt-btn-div 内的元素的右边距为 6px */
132
+ .opt-btn-div > * {
133
+ margin-right: 6px;
134
+ border-radius: 3px;
135
+ }
136
+
137
+ /* 控制 .opt-btn-div 内的最后一个元素的右边距为 0px */
138
+ .opt-btn-div > *:last-child {
139
+ margin-right: 0px;
140
+ }
141
+
142
+ .title1-sub{
143
+ background-color: var(--scl-white-1);
144
+ }
145
+
146
+ .title1-sub-text{
147
+ margin: 0 14px 5px 14px;
148
+ color:var(--scl-gray-3);
149
+ font-size: 14px;
150
+ }
151
+ </style>
@@ -1,37 +1,37 @@
1
- <template>
2
- <div class="indicator-card-title">
3
- <div class="tag-line"/>
4
- {{ title }}
5
- </div>
6
- </template>
7
- <script>
8
-
9
- export default {
10
- name: "LamboTitle2",
11
- props: {
12
- title: {
13
- type: String,
14
- default: "",
15
- }
16
- }
17
- }
18
- </script>
19
- <style scoped>
20
- @import "../styles/index.less";
21
-
22
- .indicator-card-title {
23
- display: flex;
24
- align-items: center;
25
- color: black;
26
- font-weight: bold;
27
- font-size: var(--ind-font-size-md);
28
- margin-left: 10px;
29
- }
30
-
31
- .indicator-card-title .tag-line {
32
- width: 3px;
33
- height: 14px;
34
- background-color: var(--scl-blue);
35
- margin-right: var(--ind-padding-xs);
36
- }
37
- </style>
1
+ <template>
2
+ <div class="indicator-card-title">
3
+ <div class="tag-line"/>
4
+ {{ title }}
5
+ </div>
6
+ </template>
7
+ <script>
8
+
9
+ export default {
10
+ name: "LamboTitle2",
11
+ props: {
12
+ title: {
13
+ type: String,
14
+ default: "",
15
+ }
16
+ }
17
+ }
18
+ </script>
19
+ <style scoped>
20
+ @import "../styles/index.less";
21
+
22
+ .indicator-card-title {
23
+ display: flex;
24
+ align-items: center;
25
+ color: black;
26
+ font-weight: bold;
27
+ font-size: var(--ind-font-size-md);
28
+ margin-left: 10px;
29
+ }
30
+
31
+ .indicator-card-title .tag-line {
32
+ width: 3px;
33
+ height: 14px;
34
+ background-color: var(--scl-blue);
35
+ margin-right: var(--ind-padding-xs);
36
+ }
37
+ </style>
@@ -1,77 +1,77 @@
1
- <template>
2
- <div class="container">
3
- <div class="nav">
4
- <img class="img-0" :src="imgSrc"/>
5
- </div>
6
- <div class="column">
7
- <section class="filter-txt">筛选名称</section>
8
- <section class="title-txt">{{ title }}
9
- <van-icon name="arrow-down"/>
10
- </section>
11
- </div>
12
- </div>
13
- </template>
14
- <script>
15
- import leftImg from "../assets/img/title1-edit-page.png"
16
-
17
- /**
18
- * 列表页面使用一级标题
19
- */
20
- export default {
21
- name: 'LamboTitle3',
22
- components: {},
23
- props: {
24
- title: {
25
- type: String,
26
- default: "",
27
- }
28
- },
29
- data() {
30
- return {
31
- imgSrc: leftImg,
32
- }
33
- },
34
- methods: {},
35
- created() {
36
-
37
- }
38
- }
39
- </script>
40
- <style scoped>
41
- @import "../styles/index.less";
42
-
43
- .container {
44
- display: -webkit-flex;
45
- display: flex;
46
- background-color: var(--scl-white-1);
47
- margin-bottom: 8px;
48
- padding: 0 var(--ind-padding-sm-small);
49
- }
50
-
51
- .column {
52
- -webkit-flex: 1;
53
- flex: 1;
54
- margin-left: 12px;
55
- }
56
-
57
- .img-0 {
58
- width: 32px;
59
- height: 32px;
60
- margin-top: 16px;
61
- }
62
-
63
- .filter-txt {
64
- margin-top: 10px;
65
- color: var(--scl-gray-2);
66
- font-family: Regular;
67
- font-size: var(--ind-font-size-sm);
68
- }
69
-
70
- .title-txt {
71
- margin-top: 4px;
72
- color: var(--scl-gray-1);
73
- font-family: Bold;
74
- font-size: var(--ind-font-size-lg);
75
- margin-bottom: 14px;
76
- }
77
- </style>
1
+ <template>
2
+ <div class="container">
3
+ <div class="nav">
4
+ <img class="img-0" :src="imgSrc"/>
5
+ </div>
6
+ <div class="column">
7
+ <section class="filter-txt">筛选名称</section>
8
+ <section class="title-txt">{{ title }}
9
+ <van-icon name="arrow-down"/>
10
+ </section>
11
+ </div>
12
+ </div>
13
+ </template>
14
+ <script>
15
+ import leftImg from "../assets/img/title1-edit-page.png"
16
+
17
+ /**
18
+ * 列表页面使用一级标题
19
+ */
20
+ export default {
21
+ name: 'LamboTitle3',
22
+ components: {},
23
+ props: {
24
+ title: {
25
+ type: String,
26
+ default: "",
27
+ }
28
+ },
29
+ data() {
30
+ return {
31
+ imgSrc: leftImg,
32
+ }
33
+ },
34
+ methods: {},
35
+ created() {
36
+
37
+ }
38
+ }
39
+ </script>
40
+ <style scoped>
41
+ @import "../styles/index.less";
42
+
43
+ .container {
44
+ display: -webkit-flex;
45
+ display: flex;
46
+ background-color: var(--scl-white-1);
47
+ margin-bottom: 8px;
48
+ padding: 0 var(--ind-padding-sm-small);
49
+ }
50
+
51
+ .column {
52
+ -webkit-flex: 1;
53
+ flex: 1;
54
+ margin-left: 12px;
55
+ }
56
+
57
+ .img-0 {
58
+ width: 32px;
59
+ height: 32px;
60
+ margin-top: 16px;
61
+ }
62
+
63
+ .filter-txt {
64
+ margin-top: 10px;
65
+ color: var(--scl-gray-2);
66
+ font-family: Regular;
67
+ font-size: var(--ind-font-size-sm);
68
+ }
69
+
70
+ .title-txt {
71
+ margin-top: 4px;
72
+ color: var(--scl-gray-1);
73
+ font-family: Bold;
74
+ font-size: var(--ind-font-size-lg);
75
+ margin-bottom: 14px;
76
+ }
77
+ </style>
package/util/assist.js CHANGED
@@ -1,43 +1,43 @@
1
- // 深拷贝
2
- export function deepCopy(data) {
3
- let i;
4
- const t = typeOf(data);
5
- let o;
6
-
7
- if (t === 'array') {
8
- o = [];
9
- } else if (t === 'object') {
10
- o = {};
11
- } else {
12
- return data;
13
- }
14
-
15
- if (t === 'array') {
16
- for (i = 0; i < data.length; i++) {
17
- o.push(deepCopy(data[i]));
18
- }
19
- } else if (t === 'object') {
20
- for (i in data) {
21
- o[i] = deepCopy(data[i]);
22
- }
23
- }
24
- return o;
25
- }
26
-
27
- // 判断对象类型
28
- export function typeOf(obj) {
29
- const toString = Object.prototype.toString;
30
- const map = {
31
- '[object Boolean]': 'boolean',
32
- '[object Number]': 'number',
33
- '[object String]': 'string',
34
- '[object Function]': 'function',
35
- '[object Array]': 'array',
36
- '[object Date]': 'date',
37
- '[object RegExp]': 'regExp',
38
- '[object Undefined]': 'undefined',
39
- '[object Null]': 'null',
40
- '[object Object]': 'object'
41
- };
42
- return map[toString.call(obj)];
43
- }
1
+ // 深拷贝
2
+ export function deepCopy(data) {
3
+ let i;
4
+ const t = typeOf(data);
5
+ let o;
6
+
7
+ if (t === 'array') {
8
+ o = [];
9
+ } else if (t === 'object') {
10
+ o = {};
11
+ } else {
12
+ return data;
13
+ }
14
+
15
+ if (t === 'array') {
16
+ for (i = 0; i < data.length; i++) {
17
+ o.push(deepCopy(data[i]));
18
+ }
19
+ } else if (t === 'object') {
20
+ for (i in data) {
21
+ o[i] = deepCopy(data[i]);
22
+ }
23
+ }
24
+ return o;
25
+ }
26
+
27
+ // 判断对象类型
28
+ export function typeOf(obj) {
29
+ const toString = Object.prototype.toString;
30
+ const map = {
31
+ '[object Boolean]': 'boolean',
32
+ '[object Number]': 'number',
33
+ '[object String]': 'string',
34
+ '[object Function]': 'function',
35
+ '[object Array]': 'array',
36
+ '[object Date]': 'date',
37
+ '[object RegExp]': 'regExp',
38
+ '[object Undefined]': 'undefined',
39
+ '[object Null]': 'null',
40
+ '[object Object]': 'object'
41
+ };
42
+ return map[toString.call(obj)];
43
+ }
@@ -1,19 +1,19 @@
1
- /**
2
- * 配置在该文件下的正则匹配都会被缓存
3
- * @type {RegExp[]}
4
- */
5
- const cacheRules = [
6
- /manage\/menu\/list/,
7
- /manage\/menu\/list/,
8
- /dict\/getDictsMap/,
9
- /dict\/getDicts/,
10
- /dict\/getDictsForMulti/,
11
- /upmsOrg\/getSubOrgCodes/,
12
- /upmsOrg\/getSubDeptCodesByOrgCode/,
13
- /upmsOrg\/getProvincesCodes/,
14
- /upmsOrg\/getCitysCodes/,
15
- /upmsOrg\/getIndustrysCodes/,
16
- /manage\/permission\/check/
17
- ];
18
-
19
- export default cacheRules
1
+ /**
2
+ * 配置在该文件下的正则匹配都会被缓存
3
+ * @type {RegExp[]}
4
+ */
5
+ const cacheRules = [
6
+ /manage\/menu\/list/,
7
+ /manage\/menu\/list/,
8
+ /dict\/getDictsMap/,
9
+ /dict\/getDicts/,
10
+ /dict\/getDictsForMulti/,
11
+ /upmsOrg\/getSubOrgCodes/,
12
+ /upmsOrg\/getSubDeptCodesByOrgCode/,
13
+ /upmsOrg\/getProvincesCodes/,
14
+ /upmsOrg\/getCitysCodes/,
15
+ /upmsOrg\/getIndustrysCodes/,
16
+ /manage\/permission\/check/
17
+ ];
18
+
19
+ export default cacheRules
@@ -1,11 +1,11 @@
1
- import axios from 'axios'
2
- import config from '../../config/config'
3
- import interceptors from './interceptors'
4
-
5
- const ajax = axios.create();
6
- ajax.defaults.baseURL = config.serverContext
7
- ajax.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8'
8
- ajax.interceptors.request.use(interceptors.requestInterceptors, interceptors.requestError);
9
- ajax.interceptors.response.use(interceptors.responseInterceptors, interceptors.responseError);
10
-
11
- export {ajax as axios}
1
+ import axios from 'axios'
2
+ import config from '../../config/config'
3
+ import interceptors from './interceptors'
4
+
5
+ const ajax = axios.create();
6
+ ajax.defaults.baseURL = config.serverContext
7
+ ajax.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8'
8
+ ajax.interceptors.request.use(interceptors.requestInterceptors, interceptors.requestError);
9
+ ajax.interceptors.response.use(interceptors.responseInterceptors, interceptors.responseError);
10
+
11
+ export {ajax as axios}