diff --git a/spug_web/src/pages/home/Nav.js b/spug_web/src/pages/home/Nav.js
index 9b8b240..0f75d78 100644
--- a/spug_web/src/pages/home/Nav.js
+++ b/spug_web/src/pages/home/Nav.js
@@ -7,7 +7,7 @@ import React, { useState, useEffect } from 'react';
import { Avatar, Button, Card, Col, Row } from 'antd';
import { LeftSquareOutlined, RightSquareOutlined, EditOutlined, PlusOutlined } from '@ant-design/icons';
import NavForm from './NavForm';
-import { http } from 'libs';
+import { http, hasPermission } from 'libs';
import styles from './index.module.less';
function NavIndex(props) {
@@ -40,7 +40,8 @@ function NavIndex(props) {
title="便捷导航"
className={styles.nav}
bodyStyle={{paddingBottom: 0, minHeight: 166}}
- extra={}>
+ extra={}>
{isEdit ? (
diff --git a/spug_web/src/pages/home/Notice.js b/spug_web/src/pages/home/Notice.js
index 18c406e..2b087df 100644
--- a/spug_web/src/pages/home/Notice.js
+++ b/spug_web/src/pages/home/Notice.js
@@ -6,7 +6,7 @@
import React, { useEffect, useState } from 'react';
import { Button, Card, List, Modal, Form, Input, Switch, Divider, Typography } from 'antd';
import { DownSquareOutlined, PlusOutlined, UpSquareOutlined, SoundOutlined } from '@ant-design/icons';
-import { http } from 'libs';
+import { http, hasPermission } from 'libs';
import styles from './index.module.less';
function NoticeIndex(props) {
@@ -75,7 +75,7 @@ function NoticeIndex(props) {
title="系统公告"
loading={fetching}
className={styles.notice}
- extra={}>
+ extra={}>
{isEdit ? (
diff --git a/spug_web/src/pages/home/Todo.js b/spug_web/src/pages/home/Todo.js
index 88b4d04..9d801a9 100644
--- a/spug_web/src/pages/home/Todo.js
+++ b/spug_web/src/pages/home/Todo.js
@@ -9,9 +9,7 @@ import { Card, List } from 'antd';
function TodoIndex(props) {
return (
-
- 工单 ECS购买 需要你审核。
-
+
)
}
diff --git a/spug_web/src/pages/system/role/codes.js b/spug_web/src/pages/system/role/codes.js
index 6eb0668..f7b9950 100644
--- a/spug_web/src/pages/system/role/codes.js
+++ b/spug_web/src/pages/system/role/codes.js
@@ -4,13 +4,13 @@
* Released under the AGPL-3.0 License.
*/
export default [{
- key: 'home',
- label: '工作台',
+ key: 'dashboard',
+ label: 'Dashboard',
pages: [{
- key: 'home',
- label: '工作台',
+ key: 'dashboard',
+ label: 'Dashboard',
perms: [
- {key: 'view', label: '查看工作台'}
+ {key: 'view', label: '查看Dashboard'}
]
}]
}, {
diff --git a/spug_web/src/routes.js b/spug_web/src/routes.js
index ff0cddf..e0d60ec 100644
--- a/spug_web/src/routes.js
+++ b/spug_web/src/routes.js
@@ -43,11 +43,11 @@ import WelcomeIndex from './pages/welcome/index';
import WelcomeInfo from './pages/welcome/info';
export default [
- {icon: , title: '工作台', auth: 'home.home.view', path: '/home', component: HomeIndex},
+ {icon: , title: '工作台', path: '/home', component: HomeIndex},
{
icon: ,
title: 'Dashboard',
- auth: 'home.home.view',
+ auth: 'dashboard.dashboard.view',
path: '/dashboard',
component: DashboardIndex
},