Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
data-view
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a82ae71c
authored
Jul 01, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_v1.0.0' of
http://192.168.3.233:8090/gh/data-view
into dev_v1.0.0
2 parents
8c0e2bf7
888b7577
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
9 deletions
src/api/request.js
src/config/env.development.js
src/views/afterSales/file.vue
vue.config.js
src/api/request.js
View file @
a82ae71
class
Request
{
DOMAIN
=
'/
cwq
'
DOMAIN
=
'/
dev
'
constructor
(
_request_
)
{
this
.
DOMAIN
=
_request_
?
_request_
.
baseURL
:
this
.
DOMAIN
}
...
...
src/config/env.development.js
View file @
a82ae71
...
...
@@ -11,7 +11,9 @@ module.exports = {
envVersion
:
'trial'
,
title
:
'广汇汽车服务'
,
request
:
{
baseURL
:
'http://192.168.3.126:8081'
,
// 本地测试项目地址,
// baseURL: 'http://192.168.3.126:8081', // 本地测试项目地址,
// baseURL: '/dev', // 本地测试项目地址,
baseURL
:
'/test'
,
// 本地测试项目地址,
// 设置超时时间
timeout
:
180000
,
// 携带凭证
...
...
@@ -28,4 +30,4 @@ module.exports = {
logout_function
:
'reLogin'
,
code_message_map
:
{}
},
}
\ No newline at end of file
}
src/views/afterSales/file.vue
View file @
a82ae71
...
...
@@ -97,7 +97,7 @@ export default {
num
:
item
.
num
||
0
,
hrate
:
item
.
hrate
||
0
,
trate
:
item
.
trate
||
0
,
statDate
:
item
.
statDate
,
statDate
:
item
.
statDate
.
split
(
'-'
)
,
topList
:
topList
,
lastList
:
lastList
})
...
...
vue.config.js
View file @
a82ae71
...
...
@@ -28,17 +28,24 @@ module.exports = {
errors
:
true
},
proxy
:
{
'/
cwq
'
:
{
'/
dev
'
:
{
target
:
'http://192.168.1.152:8081'
,
changeOrigin
:
true
,
ws
:
true
,
pathRewrite
:
{
'^/cwq'
:
''
'^/dev'
:
''
},
onProxyReq
:
(
proxyReq
,
req
,
res
)
=>
{
}
},
'/test'
:
{
target
:
'http://192.168.3.126:8081'
,
changeOrigin
:
true
,
ws
:
true
,
pathRewrite
:
{
'^/test'
:
''
},
onProxyReq
:
(
proxyReq
,
req
,
res
)
=>
{
// console.log(`原路径:${req.originalUrl}`)
// console.log(`代理路径:${req.url}`)
// console.log(proxyReq)
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment