mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
update:添加apm与普通商店双支持
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ref } from "vue";
|
||||
import type { App } from "./typedefinition";
|
||||
import type { App, StoreMode } from "./typedefinition";
|
||||
|
||||
export const APM_STORE_BASE_URL: string =
|
||||
import.meta.env.VITE_APM_STORE_BASE_URL || "";
|
||||
@@ -10,3 +10,14 @@ export const APM_STORE_STATS_BASE_URL: string =
|
||||
// 下面的变量用于存储当前应用的信息,其实用在多个组件中
|
||||
export const currentApp = ref<App | null>(null);
|
||||
export const currentAppIsInstalled = ref(false);
|
||||
|
||||
const initialMode = (localStorage.getItem("store_mode") as StoreMode) || "hybrid";
|
||||
export const currentStoreMode = ref<StoreMode>(initialMode);
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
apm_store: {
|
||||
arch: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user