Commit 9ed8360b authored by rocosen's avatar rocosen

1

1
parent e70beb15
......@@ -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
......@@ -10,7 +10,7 @@ function current() {
function menu() {
return request({
url: "/accounts/menu-mock",
url: Api.API_USER_PERMISSION_LIST,
method: "get",
});
}
......
......@@ -16,7 +16,7 @@ const useMyRouter = () => {
useEffect(() => {
userInfo.run();
menuInfo.run();
productInfo.run()
// productInfo.run()
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
......
......@@ -25,7 +25,6 @@ class Menus {
}> = [];
initMenu = (list: projectList) => {
console.log('list: ', list);
this.productList = [];
this.utilityList = [];
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