Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouqian
vue-gjjs
Commits
c98a128a
Commit
c98a128a
authored
Apr 01, 2022
by
liuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
请求路径修改
parent
30072dff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
Api.js
src/service/Api.js
+1
-1
TaskStatistics.vue
src/views/Home/cells/TaskStatistics.vue
+6
-0
vue.config.js
vue.config.js
+9
-2
No files found.
src/service/Api.js
View file @
c98a128a
...
...
@@ -2,7 +2,7 @@ import axios from 'axios'
import
{
MessageBox
}
from
'element-ui'
import
RequestManager
from
'./RequestManager.js'
;
export
const
BASE_HOST
=
"/gjjs/"
export
const
BASE_HOST
=
"/gjjs/
business/
"
export
const
BASE_URI
=
BASE_HOST
+
""
;
const
instance
=
axios
.
create
({
...
...
src/views/Home/cells/TaskStatistics.vue
View file @
c98a128a
...
...
@@ -48,6 +48,7 @@
<
script
>
import
CellHeaderVue
from
"./common/CellHeader.vue"
;
import
axios
from
"axios"
;
export
default
{
name
:
"TaskStatistics"
,
...
...
@@ -82,6 +83,11 @@ export default {
],
};
},
created
()
{
axios
.
get
(
'/gjjs/report/task/my'
).
then
(
res
=>
{
console
.
log
(
res
);
})
}
};
</
script
>
...
...
vue.config.js
View file @
c98a128a
...
...
@@ -33,11 +33,18 @@ module.exports = {
errors
:
true
},
proxy
:
{
'/gjjs/'
:
{
'/gjjs/
business/
'
:
{
target
:
'http://127.0.0.1:8081'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/gjjs'
:
'/gjjs'
'^/gjjs/business'
:
'/gjjs/business'
}
},
'/gjjs/report/'
:
{
target
:
'http://127.0.0.1:8082'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/gjjs/report'
:
'/gjjs/report'
}
},
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment