fix(detail): normalize review store arch

This commit is contained in:
2026-05-18 23:14:10 +08:00
parent e607e4991b
commit 75df598bc0
2 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -9,7 +9,8 @@ export const buildStoreArch = (
origin: "spark" | "apm",
clientArch: string,
): string => {
return `${clientArch}-${origin === "spark" ? "store" : "apm"}`;
const rawArch = clientArch.replace(/-(store|apm)$/, "");
return `${rawArch}-${origin === "spark" ? "store" : "apm"}`;
};
export const buildFavoriteAppKey = (app: App): string => {