import { FormEvent, ReactNode, useEffect, useState } from "react"; import { changeCredentials, getUsername, setSession, apiFetch, StrategySettings, RuntimeSettings, BackupStatus, downloadBackup, uploadRestoreBackup, } from "../api/client"; type Tab = "strategy" | "runtime" | "account" | "backup"; type StratSub = | "position" | "select" | "exit" | "pace"; function RulesFold({ open, onToggle, children, }: { open: boolean; onToggle: () => void; children: ReactNode; }) { return (
暂无备份,可点「立即备份」。
)}在新机器部署后,上传旧机下载的 zip,将覆盖数据库与{" "} .env 。须无持仓;确认串填写{" "} RESTORE 。恢复后服务自动重启。