export const priceTypes = [ { label: "最新", value: "1" }, { label: "指数", value: "2" }, { label: "标记", value: "3" } ]; export const units = [ { label: "USDT", value: "1" }, { label: "%回报率", value: "2" } ]; export function getPriceTypeLabel(type: string) { switch (type) { case "last": return "最新价格"; case "index": return "指数价格"; case "mark": return "标记价格"; } }