This commit is contained in:
parent
cabcd70555
commit
d479a51eb9
|
|
@ -207,9 +207,9 @@ export function DetailPageHeader({ data }: { data: any }) {
|
|||
const json = await res.json();
|
||||
|
||||
if (json?.header?.code === 0) {
|
||||
setStatusText(`✅ ${json.header.message || "操作成功"}`);
|
||||
setStatusText(`${json.header.message || "操作成功"}`);
|
||||
} else {
|
||||
setStatusText(`❌ ${json.header.message || "操作失败(后端返回错误)"}`);
|
||||
setStatusText(`${json.header.message || "操作失败(后端返回错误)"}`);
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("请求出错:", err);
|
||||
|
|
@ -310,7 +310,7 @@ export function DetailPageHeader({ data }: { data: any }) {
|
|||
{/* 状态条 */}
|
||||
<div className="w-full mt-4 bg-gray-200 h-6">
|
||||
<div
|
||||
className="bg-blue-500 h-full text-white text-center text-sm flex items-center justify-center transition-all duration-300"
|
||||
className="bg-blue-500 h-full text-white text-center text-sm flex items-center justify-center transition-all duration-300 px-2 overflow-hidden whitespace-nowrap text-ellipsis"
|
||||
style={{ width: data?.progress || "60%" }}
|
||||
>
|
||||
{loading ? "操作中..." : statusText}
|
||||
|
|
|
|||
Loading…
Reference in New Issue