"use client" import { useAppStore } from "@/store/app" import { Switch } from "@heroui/react" import { enable, isEnabled, disable } from "@tauri-apps/plugin-autostart" export default function Page() { const app = useAppStore() return (

版本号:{app.state.version}

是否有更新:{app.state.hasUpdate ? "有" : "无"}

是否使用镜像源:{app.state.useMirror ? "是" : "否"}

isEnabled()} size="sm" onChange={(e) => { if (e.target.checked) { enable() } else { disable() } }} > 开机自启动
) }