add template 详情

This commit is contained in:
root 2025-07-10 23:07:41 +08:00
parent e0fbb1124d
commit b07992a82a
1 changed files with 8 additions and 2 deletions

View File

@ -538,7 +538,10 @@ const TemplateManagePage: React.FC = () => {
<div className="flex items-center justify-between mb-4"> <div className="flex items-center justify-between mb-4">
<h2 className="text-xl font-bold text-gray-900"></h2> <h2 className="text-xl font-bold text-gray-900"></h2>
<button <button
onClick={() => setSelectedTemplate(null)} onClick={() => {
setSelectedTemplate(null)
setTemplateDetail(null)
}}
className="text-gray-400 hover:text-gray-600" className="text-gray-400 hover:text-gray-600"
> >
× ×
@ -678,7 +681,10 @@ const TemplateManagePage: React.FC = () => {
<div className="flex justify-end space-x-3 pt-4 border-t border-gray-200"> <div className="flex justify-end space-x-3 pt-4 border-t border-gray-200">
<button <button
onClick={() => setSelectedTemplate(null)} onClick={() => {
setSelectedTemplate(null)
setTemplateDetail(null)
}}
className="px-4 py-2 text-gray-700 bg-gray-100 rounded-lg hover:bg-gray-200 transition-colors" className="px-4 py-2 text-gray-700 bg-gray-100 rounded-lg hover:bg-gray-200 transition-colors"
> >