甘特图请求不稳定处理
This commit is contained in:
parent
73f3819623
commit
31585c3b89
File diff suppressed because it is too large
Load Diff
2
public/doc/ExtGantt/http-axios.js
Normal file
2
public/doc/ExtGantt/http-axios.js
Normal file
File diff suppressed because one or more lines are too long
@ -40,11 +40,11 @@ if (process.env.NODE_ENV == 'development') {
|
||||
// axios.defaults.baseURL = 'http://124.71.178.44:100/' // 河南
|
||||
// tag: 本地
|
||||
// axios.defaults.baseURL = 'http://192.168.34.174:6023/' // 老大本地
|
||||
// axios.defaults.baseURL = 'http://192.168.34.116:6023/' // 邱平毅本地
|
||||
axios.defaults.baseURL = 'http://192.168.34.116:6023/' // 邱平毅本地
|
||||
// axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地
|
||||
// axios.defaults.baseURL = 'http://ue6a4s.natappfree.cc' // 邱平毅vpn本地
|
||||
// axios.defaults.baseURL = 'http://139.9.66.234:6324/' // 河南春笋
|
||||
axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
|
||||
// axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
|
||||
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
|
||||
// axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上
|
||||
// axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地
|
||||
|
||||
123
vue.config.js
123
vue.config.js
@ -1,86 +1,87 @@
|
||||
|
||||
const path = require('path')
|
||||
const path = require("path");
|
||||
// 代码压缩
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
function addStyleResource (rule) {
|
||||
rule.use('style-resource')
|
||||
.loader('style-resources-loader')
|
||||
function addStyleResource(rule) {
|
||||
rule
|
||||
.use("style-resource")
|
||||
.loader("style-resources-loader")
|
||||
.options({
|
||||
patterns: [
|
||||
path.resolve(__dirname, 'src/assets/style/var.less'),//全局引入的less文件
|
||||
path.resolve(__dirname, 'src/assets/style/longguang.less'),//全局引入的less文件--龙光地产
|
||||
path.resolve(__dirname, "src/assets/style/var.less"), //全局引入的less文件
|
||||
path.resolve(__dirname, "src/assets/style/longguang.less"), //全局引入的less文件--龙光地产
|
||||
],
|
||||
})
|
||||
});
|
||||
}
|
||||
module.exports = {
|
||||
publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
|
||||
devServer:{
|
||||
devServer: {
|
||||
// host: 'localhost',
|
||||
proxy:{
|
||||
'/china' : {
|
||||
proxy: {
|
||||
"/china": {
|
||||
target: "http://122.112.239.62:9000",
|
||||
changeOrigin:true,
|
||||
pathRewrite:{
|
||||
'^/china':"" //重写路径
|
||||
}
|
||||
}
|
||||
}
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
"^/china": "", //重写路径
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
pages:{
|
||||
pages: {
|
||||
index: {
|
||||
entry: "./src/pages/index/index.js",
|
||||
template: "./src/pages/index/index.html",
|
||||
filename: "index.html",
|
||||
title: "机械设备管理平台"
|
||||
title: "机械设备管理平台",
|
||||
},
|
||||
equipmentCenter: {
|
||||
entry: "./src/pages/equipmentCenter/equipmentCenter.js",
|
||||
template: "./src/pages/equipmentCenter/equipmentCenter.html",
|
||||
filename: "equipmentCenter.html",
|
||||
title: "设备中台"
|
||||
}
|
||||
title: "设备中台",
|
||||
},
|
||||
},
|
||||
chainWebpack: config => {
|
||||
const types = ['vue-modules', 'vue', 'normal-modules', 'normal']
|
||||
types.forEach(type => addStyleResource(config.module.rule('less').oneOf(type)))
|
||||
chainWebpack: (config) => {
|
||||
const types = ["vue-modules", "vue", "normal-modules", "normal"];
|
||||
types.forEach((type) =>
|
||||
addStyleResource(config.module.rule("less").oneOf(type))
|
||||
);
|
||||
},
|
||||
pluginOptions: {
|
||||
"style-resources-loader": {
|
||||
preProcessor: "stylus",
|
||||
patterns: [],
|
||||
},
|
||||
pluginOptions: {
|
||||
'style-resources-loader': {
|
||||
preProcessor: 'stylus',
|
||||
patterns: []
|
||||
}
|
||||
},
|
||||
productionSourceMap:false,
|
||||
configureWebpack: {
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
ecma: undefined,
|
||||
warnings: false,
|
||||
parse: {},
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_debugger: false,
|
||||
pure_funcs: ['console.log'], // 移除console
|
||||
},
|
||||
},
|
||||
productionSourceMap: false,
|
||||
configureWebpack: {
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
ecma: undefined,
|
||||
warnings: false,
|
||||
parse: {},
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_debugger: false,
|
||||
pure_funcs: ["console.log"], // 移除console
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
// configureWebpack: (config) => {
|
||||
// Object.assign(config, {
|
||||
// // 开发生产共同配置
|
||||
// resolve: {
|
||||
// alias: {
|
||||
// '@': path.resolve(__dirname, './src'),
|
||||
// '@c': path.resolve(__dirname, './src/components'),
|
||||
// '@p': path.resolve(__dirname, './src/assets/j')
|
||||
// } // 别名配置
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
}
|
||||
// configureWebpack: (config) => {
|
||||
// Object.assign(config, {
|
||||
// // 开发生产共同配置
|
||||
// resolve: {
|
||||
// alias: {
|
||||
// '@': path.resolve(__dirname, './src'),
|
||||
// '@c': path.resolve(__dirname, './src/components'),
|
||||
// '@p': path.resolve(__dirname, './src/assets/j')
|
||||
// } // 别名配置
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user