diff --git a/dashboard/src/views/ConfigPage.vue b/dashboard/src/views/ConfigPage.vue index 9ff174669..64d3f1795 100644 --- a/dashboard/src/views/ConfigPage.vue +++ b/dashboard/src/views/ConfigPage.vue @@ -83,7 +83,7 @@ import { VueMonacoEditor } from '@guolao/vue-monaco-editor'
不了解配置?请见 官方文档 + href="https://astrbot.soulter.top/">官方文档 或 加群询问
diff --git a/main.py b/main.py index 6c2e5fa89..3b0b79481 100644 --- a/main.py +++ b/main.py @@ -40,8 +40,11 @@ async def check_dashboard_files(): if os.path.exists("data/dist"): if os.path.exists("data/dist/assets/version"): with open("data/dist/assets/version", "r") as f: - if f.read() != VERSION: + v = f.read().strip() + if v != f"v{VERSION}": logger.warning("检测到管理面板有更新。可以使用 /dashboard update 命令更新。") + else: + logger.info("管理面板文件已是最新。") return logger.info("开始下载管理面板文件...")