Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
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
Administrator
bkunyun
Commits
9ed8360b
Commit
9ed8360b
authored
Jun 10, 2022
by
rocosen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
1
parent
e70beb15
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
api_manager.ts
src/api/api_manager.ts
+2
-0
demo_api.ts
src/api/demo_api.ts
+1
-1
useMyRouter.ts
src/components/MyRouter/useMyRouter.ts
+1
-1
menu.ts
src/store/modules/menu.ts
+0
-1
No files found.
src/api/api_manager.ts
View file @
9ed8360b
...
...
@@ -3,6 +3,7 @@ import { BACKEND_API_URI_PREFIX } from './api_prefix'
const
RESTAPI
=
{
API_USER_FETCH
:
`
${
BACKEND_API_URI_PREFIX
}
/accounts/current`
,
//获取账户信息
API_PROJECT_LIST
:
`
${
BACKEND_API_URI_PREFIX
}
/cpp/project/list`
,
//获取产品列表
API_USER_PERMISSION_LIST
:
`
${
BACKEND_API_URI_PREFIX
}
/uaa/routes/privilege/list`
,
//获取用户包含的权限列表
}
export
default
RESTAPI
\ No newline at end of file
src/api/demo_api.ts
View file @
9ed8360b
...
...
@@ -10,7 +10,7 @@ function current() {
function
menu
()
{
return
request
({
url
:
"/accounts/menu-mock"
,
url
:
Api
.
API_USER_PERMISSION_LIST
,
method
:
"get"
,
});
}
...
...
src/components/MyRouter/useMyRouter.ts
View file @
9ed8360b
...
...
@@ -16,7 +16,7 @@ const useMyRouter = () => {
useEffect
(()
=>
{
userInfo
.
run
();
menuInfo
.
run
();
productInfo
.
run
()
//
productInfo.run()
// eslint-disable-next-line react-hooks/exhaustive-deps
},
[]);
...
...
src/store/modules/menu.ts
View file @
9ed8360b
...
...
@@ -25,7 +25,6 @@ class Menus {
}
>
=
[];
initMenu
=
(
list
:
projectList
)
=>
{
console
.
log
(
'list: '
,
list
);
this
.
productList
=
[];
this
.
utilityList
=
[];
for
(
let
item
of
list
)
{
...
...
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