yuang-framework-ui-common 1.0.24 → 1.0.25

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.
@@ -15,8 +15,8 @@ const messageMap = {
15
15
  }
16
16
 
17
17
  const http = axios.create({
18
- baseURL: (window as any).$config?.apiBaseUrl ?? '/gateway-api',
19
- timeout: 5000,
18
+ baseURL: '/gateway-server',
19
+ timeout: 10000,
20
20
  headers: {}
21
21
  })
22
22
 
@@ -84,7 +84,7 @@ http.interceptors.response.use((res) => {
84
84
  let errorMessage = '';
85
85
  if (error?.response?.data) {
86
86
  let { statusCode, message } = error?.response?.data;
87
- if(statusCode !== 200) {
87
+ if (statusCode !== 200) {
88
88
  errorMessage = message;
89
89
  }
90
90
  } else {
@@ -98,7 +98,7 @@ http.interceptors.response.use((res) => {
98
98
  * 请求之前的配置
99
99
  * @param config
100
100
  */
101
- const beforeRequestConfig = (config) => {
101
+ const beforeRequestConfig = (config: any) => {
102
102
  if (!config.url) {
103
103
  return console.error('参数[url]不存在');
104
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-common",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {