From fbd63b28af5fdb7a4a87d57ac1a00c6bd6a69dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Fri, 10 Mar 2023 15:15:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E9=85=8D=E7=BD=AE=E5=88=9D?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/system/index.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/system/index.tsx b/src/pages/system/index.tsx index 2a1e9b5..8281953 100644 --- a/src/pages/system/index.tsx +++ b/src/pages/system/index.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from "react"; -import { Row, Col, Form, Input, Select, Button, message } from "antd"; +import { Row, Col, Form, Input, Image, Button, message } from "antd"; import styles from "./update.module.less"; import { appConfig } from "../../api/index"; import { useParams, useNavigate } from "react-router-dom"; @@ -28,6 +28,9 @@ export const SystemIndexPage: React.FC = () => { form.setFieldsValue({ "system.logo": configData[i].key_value, }); + if (configData[i].key_value !== "") { + setLogo(configData[i].key_value); + } } else if (configData[i].key_name === "system.api_url") { form.setFieldsValue({ "system.api_url": configData[i].key_value, @@ -91,11 +94,12 @@ export const SystemIndexPage: React.FC = () => { > {logo && ( - )}