Commit 1843fd98e59d5ed5529602e3c00abd8d7ef8b8b9

Authored by Min
1 parent 9b41f9e4

1.处理用户权限翻译

src/components/CommonSystemSettingEvent/TabSysParamsIcon.js
... ... @@ -2,6 +2,7 @@
2 2 import React, { useEffect, useState } from "react";
3 3 import { Form, Col, Upload, Image as ImageNew, message } from "antd-v4";
4 4 import commonConfig from "@/utils/config";
  5 +import * as commonFunc from "@/components/Common/commonFunc";
5 6  
6 7 // 判断图片是否存在
7 8 const checkImgExists = (imgUrl, success, error) => {
... ... @@ -24,14 +25,21 @@ const TabSysParamIcon = props => {
24 25 const refresh = () => {
25 26 setRefresher(pre => pre + 1);
26 27 };
  28 + const WebHeadIcon = commonFunc.showLocalMessage(props, 'WebHeadIcon', '标签页icon');
  29 + const LoginIcon = commonFunc.showLocalMessage(props, 'LoginIcon', '登录页icon');
  30 + const copyrightLogo = commonFunc.showLocalMessage(props, 'copyrightLogo', '版权logo');
  31 + const IndexPageLogo = commonFunc.showLocalMessage(props, 'WebHeadIcon', '主页logo');
  32 + const backSysLogo = commonFunc.showLocalMessage(props, 'backSysLogo', '后台登录logo');
  33 + const backSysNavLogo = commonFunc.showLocalMessage(props, 'backSysNavLogo', '后台导航logo');
  34 +
27 35  
28 36 const [iconData, setIconData] = useState([
29   - { title: "标签页icon", imageUrl: "" },
30   - { title: "登录页logo", imageUrl: "" },
31   - { title: "主页logo", imageUrl: "" },
32   - { title: "版权logo", imageUrl: "" },
33   - { title: "后台登陆logo", imageUrl: "" },
34   - { title: "后台导航logo", imageUrl: "" }
  37 + { title: WebHeadIcon, imageUrl: "" },
  38 + { title: LoginIcon, imageUrl: "" },
  39 + { title: IndexPageLogo, imageUrl: "" },
  40 + { title: copyrightLogo, imageUrl: "" },
  41 + { title: backSysLogo, imageUrl: "" },
  42 + { title: backSysNavLogo, imageUrl: "" }
35 43 ]);
36 44  
37 45 // 获取默认数据
... ...