mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-06 08:03:47 +00:00
fix(webui): prevent duplicate v prefix in version and link to GitHub repo
This commit is contained in:
1 parent
a9470df4fc
commit
83d623d541
3 files changed
+20
-2
No files matched your search
+2
-1
@@ -87,7 +87,8 @@ async function boot() {
|
||||
setUnauthorizedHandler(showLogin);
|
||||
|
||||
store.on("monitor", (data) => {
|
||||
$("#version").textContent = `v${data.version}`;
|
||||
const version = String(data.version || "");
|
||||
$("#version").textContent = version.startsWith("v") || version === "dev" ? version : `v${version}`;
|
||||
});
|
||||
|
||||
for (const page of PAGES) page.init?.();
|
||||
|
||||
Reference in new issue
Block a user