yc-ui2 0.1.0-beta10 → 0.1.0-beta12

Sign up to get free protection for your applications and to get access to all the features.
package/vue.config.js CHANGED
@@ -1,9 +1,8 @@
1
- const { defineConfig } = require('@vue/cli-service')
1
+ const { defineConfig } = require("@vue/cli-service")
2
2
 
3
+ let path = require("path")
3
4
 
4
- let path = require('path');
5
-
6
- function resolve (dir) {
5
+ function resolve(dir) {
7
6
  return path.join(__dirname, dir)
8
7
  }
9
8
 
@@ -11,9 +10,22 @@ module.exports = defineConfig({
11
10
  transpileDependencies: true,
12
11
  chainWebpack: (config) => {
13
12
  config.resolve.alias
14
- .set('@', resolve('src'))
13
+ .set("@", resolve("src"))
15
14
  .set("assets", resolve("src/assets"))
16
15
  .set("comp", resolve("src/components"))
17
- // .set("utils", resolve("utils"))
16
+ },
17
+ // 前端代理服务器
18
+ devServer: {
19
+ proxy: {
20
+ ['/cloud-img']: {
21
+ target: `http://113.219.171.47:6610/cloud-img/`,
22
+ changeOrigin: true,
23
+ pathRewrite: {
24
+ ["^/cloud-img"]: "",
25
+ },
26
+ },
27
+ },
28
+ historyApiFallback: true,
29
+ allowedHosts: "all"
18
30
  },
19
31
  })
Binary file