Ver código fonte

提交

master
yangzhou-cyber 3 anos atrás
pai
commit
c8b2ec64f3
2 arquivos alterados com 14 adições e 1 exclusões
  1. +2
    -1
      src/config/setting.js
  2. +12
    -0
      vue.config.js

+ 2
- 1
src/config/setting.js Ver arquivo

@@ -4,7 +4,8 @@
export default {
version: '1.0',
name: 'JNDZ考核管理系统', // 项目名称
baseURL: 'http://127.0.0.1:9031/api/', // 接口地址
// baseURL: 'http://127.0.0.1:9031/api/', // 接口地址
baseURL: '/api/api', // 接口地址
whiteList: ['/login', '/forget'], // 路由白名单(不需要登录的)
keepAliveList: [], // 需要缓存的组件名称
menuUrl: '/index/getMenuList', // 菜单数据接口

+ 12
- 0
vue.config.js Ver arquivo

@@ -1,6 +1,18 @@
const CompressionWebpackPlugin = require('compression-webpack-plugin');

module.exports = {
devServer: {
open: true,
proxy: {
"/api": {
target: "http://47.98.157.120:9031/",
changeOrigin: true,
// pathRewrite: {
// "^/api": "/"
// }
}
}
},
productionSourceMap: false,
transpileDependencies: ['element-ui'], // 需要兼容IE10要放开这个
chainWebpack: config => {

Carregando…
Cancelar
Salvar