提交pnpm-lock.yaml文件,问答助手反馈弹窗再次弹出时,清空之前填写的内容

This commit is contained in:
2025-07-24 10:54:50 +08:00
parent 26cd7f7e8f
commit b76320a3e7
3 changed files with 10474 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ yarn.lock
.yarnrc.yml .yarnrc.yml
# pmpm # pmpm
pnpm-lock.yaml # pnpm-lock.yaml
# info # info
keys.ts keys.ts
@@ -1,4 +1,4 @@
import React, { useState } from 'react'; import React, { useState, useEffect } from 'react';
import { Modal, Checkbox, Input, message } from 'antd'; import { Modal, Checkbox, Input, message } from 'antd';
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
@@ -16,6 +16,12 @@ const FeedbackModal: React.FC<FeedbackModalProps> = ({ open, onOk, onCancel }) =
const { t } = useTranslation() const { t } = useTranslation()
const [confirmLoading, setConfirmLoading] = useState(false); const [confirmLoading, setConfirmLoading] = useState(false);
useEffect(() => {
if (open) {
setFeedbackText('');
}
}, [open]);
const handleOk = async () => { const handleOk = async () => {
if (!feedbackText) { if (!feedbackText) {
message.warning('请填写反馈建议'); message.warning('请填写反馈建议');
+10466
View File
File diff suppressed because it is too large Load Diff