|
@@ -17,7 +17,8 @@ import {
|
|
|
} from "@/store/action/A1List";
|
|
|
import { MessageFu } from "@/utils/message";
|
|
|
import history from "@/utils/history";
|
|
|
-import { removeTokenInfo } from "@/utils/storage";
|
|
|
+import { getTokenInfo, removeTokenInfo } from "@/utils/storage";
|
|
|
+import clasNames from "classnames";
|
|
|
|
|
|
const isTokenFlagFu = (val: boolean, url: string) => {
|
|
|
if (val) {
|
|
@@ -32,6 +33,10 @@ const isTokenFlagFu = (val: boolean, url: string) => {
|
|
|
};
|
|
|
|
|
|
function A1List() {
|
|
|
+ const userInfo = useMemo(() => {
|
|
|
+ return getTokenInfo().user;
|
|
|
+ }, []);
|
|
|
+
|
|
|
const dispatch = useDispatch();
|
|
|
|
|
|
// 顶部筛选
|
|
@@ -153,7 +158,14 @@ function A1List() {
|
|
|
|
|
|
return (
|
|
|
<div className={styles.A1List}>
|
|
|
- <div className="pageTitle">场景管理</div>
|
|
|
+ <div
|
|
|
+ className={clasNames(
|
|
|
+ "pageTitle",
|
|
|
+ userInfo.isAdmin !== 1 ? "pageTitleToLeft" : ""
|
|
|
+ )}
|
|
|
+ >
|
|
|
+ 场景管理
|
|
|
+ </div>
|
|
|
<div className="A1Top">
|
|
|
<div className="selectBox">
|
|
|
<div className="selectBoxL">
|