Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2022-01-06 15:33:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b1a2861029c2f56be213388bf808d56f915703dc
b1a28610
1 parent
cca70982
配置更新
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
src/utils/request.js
src/utils/zipdownload.js
vue.config.js
src/utils/request.js
View file @
b1a2861
...
...
@@ -10,9 +10,9 @@ const service = axios.create({
// axios中请求配置有baseURL选项,表示请求URL公共部分
//baseURL: process.env.VUE_APP_BASE_API,
//baseURL: 'http://192.168.1.45:8080',
// baseURL: `http://47.103.140.98:9002`,s
baseURL
:
`http://47.103.140.98:9002`
,
// baseURL: 'https://imacuat.zmd.apac.fedex.com:9002/IMAC2',
baseURL
:
'http://192.168.1.134:18080'
,
//
baseURL: 'http://192.168.1.134:18080',
// 超时
timeout
:
30000
...
...
src/utils/zipdownload.js
View file @
b1a2861
...
...
@@ -6,8 +6,8 @@ const mimeMap = {
zip
:
'application/zip'
}
// const baseURL = 'https://imacuat.zmd.apac.fedex.com:9002/IMAC2'
//
const baseUrl = 'http://47.103.140.98:9002'
const
baseUrl
=
'http://192.168.1.134:18080'
const
baseUrl
=
'http://47.103.140.98:9002'
//
const baseUrl = 'http://192.168.1.134:18080'
export
function
downLoadZip
(
str
,
filename
)
{
var
url
=
baseUrl
+
str
axios
({
...
...
vue.config.js
View file @
b1a2861
...
...
@@ -37,8 +37,8 @@ module.exports = {
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `https://imacuat.zmd.apac.fedex.com:9002/IMAC2`,
// target: `http://192.168.1.45:8080`,
//
target: `http://47.103.140.98:9002`,
target
:
`http://192.168.1.134:18080`
,
target
:
`http://47.103.140.98:9002`
,
//
target: `http://192.168.1.134:18080`,
changeOrigin
:
true
,
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
Please
register
or
login
to post a comment