Commit 9ed8360b authored by rocosen's avatar rocosen

1

1
parent e70beb15
...@@ -3,6 +3,7 @@ import { BACKEND_API_URI_PREFIX } from './api_prefix' ...@@ -3,6 +3,7 @@ import { BACKEND_API_URI_PREFIX } from './api_prefix'
const RESTAPI = { const RESTAPI = {
API_USER_FETCH: `${BACKEND_API_URI_PREFIX}/accounts/current`,//获取账户信息 API_USER_FETCH: `${BACKEND_API_URI_PREFIX}/accounts/current`,//获取账户信息
API_PROJECT_LIST: `${BACKEND_API_URI_PREFIX}/cpp/project/list`,//获取产品列表 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 export default RESTAPI
\ No newline at end of file
...@@ -10,7 +10,7 @@ function current() { ...@@ -10,7 +10,7 @@ function current() {
function menu() { function menu() {
return request({ return request({
url: "/accounts/menu-mock", url: Api.API_USER_PERMISSION_LIST,
method: "get", method: "get",
}); });
} }
......
...@@ -16,7 +16,7 @@ const useMyRouter = () => { ...@@ -16,7 +16,7 @@ const useMyRouter = () => {
useEffect(() => { useEffect(() => {
userInfo.run(); userInfo.run();
menuInfo.run(); menuInfo.run();
productInfo.run() // productInfo.run()
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, []); }, []);
......
...@@ -25,7 +25,6 @@ class Menus { ...@@ -25,7 +25,6 @@ class Menus {
}> = []; }> = [];
initMenu = (list: projectList) => { initMenu = (list: projectList) => {
console.log('list: ', list);
this.productList = []; this.productList = [];
this.utilityList = []; this.utilityList = [];
for (let item of list) { for (let item of list) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment