Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng_code
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanxiao
mancheng_code
Commits
2f1edf0a
Commit
2f1edf0a
authored
Mar 18, 2024
by
heshihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改代理地址
parent
78c85bad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
31 deletions
+35
-31
src/api/cockpit/index.js
+34
-30
vue.config.js
+1
-1
No files found.
src/api/cockpit/index.js
View file @
2f1edf0a
// import api from '../../utils/http'
import
api
from
'@/utils/http'
import
api
from
"@/utils/http"
;
const
cockpit
=
{
menu
:
"/api/attract/industry/menu"
,
...
...
@@ -11,49 +10,54 @@ const cockpit = {
DataNotification
:
"/api/attract/industry/DataNotification"
,
IndustryDistribute
:
"/api/attract/industry/IndustryDistribute"
,
Information
:
"/api/xiaocx/Information"
,
}
kfqInfo
:
"/api/attract/industry/GetKfqEco"
,
};
const
DataNotification
=
()
=>
{
return
api
.
get
(
cockpit
.
DataNotification
)
}
return
api
.
get
(
cockpit
.
DataNotification
)
;
}
;
const
menu
=
(
district
)
=>
{
return
api
.
post
(
cockpit
.
menu
,
{
district
:
district
})
}
district
:
district
,
})
;
}
;
const
video
=
(
district
)
=>
{
return
api
.
post
(
cockpit
.
video
,
{
district
:
district
})
}
district
:
district
,
})
;
}
;
const
getInfo
=
(
district
)
=>
{
return
api
.
post
(
cockpit
.
info
,
{
district
:
district
})
}
district
:
district
,
})
;
}
;
const
propol
=
(
district
)
=>
{
return
api
.
post
(
cockpit
.
propol
,
{
district
:
district
})
}
district
:
district
,
})
;
}
;
const
project
=
(
district
)
=>
{
return
api
.
post
(
cockpit
.
project
,
{
district
:
district
})
}
district
:
district
,
})
;
}
;
const
IndustryDistribute
=
(
flag
)
=>
{
return
api
.
post
(
cockpit
.
IndustryDistribute
,
{
flag
})
}
flag
,
})
;
}
;
const
Information
=
()
=>
{
return
api
.
post
(
cockpit
.
Information
,
{
name
:
''
,
name
:
""
,
flag
:
2
,
page
:
1
,
perpage
:
5000
})
}
perpage
:
5000
,
});
};
const
getKfqInfo
=
()
=>
{
return
api
.
get
(
cockpit
.
kfqInfo
);
};
export
default
{
menu
,
...
...
@@ -63,5 +67,6 @@ export default {
project
,
DataNotification
,
IndustryDistribute
,
Information
}
\ No newline at end of file
Information
,
getKfqInfo
,
};
vue.config.js
View file @
2f1edf0a
...
...
@@ -27,7 +27,7 @@ module.exports = {
// logLevel: 'debug'
},
"^/api"
:
{
target
:
"http
://192.168.110.15:5003
"
,
target
:
"http
s://mancheng.industrychain.online
"
,
changeOrigin
:
true
,
// pathRewrite: {
// "/api": "",
...
...
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