yc-ui2 0.1.0-beta9 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
package/src/main.js CHANGED
@@ -2,10 +2,13 @@ import Vue from 'vue'
2
2
  import App from './App.vue'
3
3
 
4
4
  import SlideVerify from "vue-monoplasty-slide-verify"
5
+ import ElementUI from 'element-ui'
6
+ import 'element-ui/lib/theme-chalk/index.css';
5
7
 
6
8
  Vue.config.productionTip = false
7
9
 
8
10
  Vue.use(SlideVerify)
11
+ Vue.use(ElementUI)
9
12
 
10
13
  new Vue({
11
14
  render: h => h(App),
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