mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-06-22 14:13:49 +08:00
fix(detail): normalize review store arch
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user