yc-ui2 0.1.3-beta1 → 0.1.3-beta3
Sign up to get free protection for your applications and to get access to all the features.
- package/.env +2 -2
- package/dist/yc-ui2.common.js +1 -1
- package/dist/yc-ui2.common.js.map +1 -1
- package/dist/yc-ui2.umd.js +1 -1
- package/dist/yc-ui2.umd.js.map +1 -1
- package/dist/yc-ui2.umd.min.js +1 -1
- package/dist/yc-ui2.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/request.js +1 -1
- package/vue.config.js +3 -3
package/package.json
CHANGED
package/src/utils/request.js
CHANGED
@@ -5,7 +5,7 @@ axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
|
|
5
5
|
// 创建axios实例
|
6
6
|
const service = axios.create({
|
7
7
|
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
8
|
-
baseURL: process.env.
|
8
|
+
baseURL: process.env.VUE_APP_CUSTOMER_PATH,
|
9
9
|
// 超时
|
10
10
|
timeout: 10000,
|
11
11
|
});
|
package/vue.config.js
CHANGED
@@ -20,11 +20,11 @@ module.exports = defineConfig({
|
|
20
20
|
// 前端代理服务器
|
21
21
|
devServer: {
|
22
22
|
proxy: {
|
23
|
-
[process.env.
|
24
|
-
target: `http://${process.env.
|
23
|
+
[process.env.VUE_APP_CUSTOMER_PATH]: {
|
24
|
+
target: `http://${process.env.VUE_APP_CUSTOMER_API}`,
|
25
25
|
changeOrigin: true,
|
26
26
|
pathRewrite: {
|
27
|
-
["^"+process.env.
|
27
|
+
["^"+process.env.VUE_APP_CUSTOMER_PATH]: "",
|
28
28
|
},
|
29
29
|
},
|
30
30
|
[process.env.VUE_APP_IMG_PATH]: {
|