Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1ebfcc8e
authored
2020-12-30 17:14:12 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Merge branch 'master' of E:\IDEA-PROJECT\CadastralSystem with conflicts.
1 parent
402a226a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
23 deletions
.env
vue.config.js
.env
View file @
1ebfcc8
VUE_APP_api = 'http://192.168.2.48:8006'
VUE_APP_api1 = 'http://127.0.0.1:8006'
VUE_APP_api2 = 'http://192.168.2.9:8006'
VUE_APP_api = 'http://192.168.2.108:8000'
VUE_APP_api1 = 'http://192.168.2.76:8000'
VUE_APP_api2 = 'http://192.168.2.108:8006'
VUE_APP_api5 = 'http://192.168.2.59:8443'
VUE_APP_api3 = 'https://127.0.0.1:8006'
VUE_APP_api4 = 'http://127.0.0.1:18080'
VUE_APP_name = '开发环境'
NODE_ENV="development"
VUE_APP_VERSION = 'psh'
\ No newline at end of file
...
...
vue.config.js
View file @
1ebfcc8
...
...
@@ -5,7 +5,6 @@ let Timestamp = new Date().getTime();
function
resolve
(
dir
)
{
return
path
.
join
(
__dirname
,
dir
)
}
const
UglifyJsPlugin
=
require
(
"uglifyjs-webpack-plugin"
);
module
.
exports
=
{
publicPath
:
'./'
,
...
...
@@ -20,7 +19,6 @@ module.exports = {
.
set
(
'@libs'
,
resolve
(
'src/libs'
))
.
set
(
'@router'
,
resolve
(
'src/router'
))
.
set
(
'@components'
,
resolve
(
'src/components'
))
.
set
(
'@assets'
,
resolve
(
'src/assets'
))
},
pluginOptions
:
{
'style-resources-loader'
:
{
...
...
@@ -33,17 +31,8 @@ module.exports = {
filename
:
`js/[name].
${
Timestamp
}
.js`
,
chunkFilename
:
`js/[name].
${
Timestamp
}
.js`
},
plugins
:
[
// 去除console和debugger
// new UglifyJsPlugin({
// uglifyOptions: {
// compress: {
// drop_console: true,
// drop_debugger: true,
// },
// },
// parallel: true,
// }),
// plugins: [
// new FileManagerPlugin({ //初始化 filemanager-webpack-plugin 插件实例
// onEnd: {
// mkdir: ['./zip','./dist'], //初始化生产zip和dist文件夹
...
...
@@ -52,20 +41,16 @@ module.exports = {
// ]
// }
// })
]
//
]
},
devServer
:
{
host
:
"192.168.2.61"
,
host
:
"0.0.0.0"
,
port
:
800
8
,
port
:
800
6
,
https
:
false
,
hotOnly
:
false
,
proxy
:
{
"/api"
:
{
// target: 'https://192.168.2.119:8006', //泽平
// target: process.env.VUE_APP_api1, //本地
target
:
process
.
env
.
VUE_APP_api
,
//赵千
// target: process.env.VUE_APP_api4, //赵千
target
:
process
.
env
.
VUE_APP_api3
,
changeOrigin
:
true
,
pathRewrite
:
{
"^/api"
:
"/"
,
...
...
Please
register
or
sign in
to post a comment