mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
- 删除 AppSidebar.vue 中的 StoreModeSwitcher 引入并删除该组件。 - 强制设置当前商店模式为 'hybrid'。 - 修复了因为 `window.apm_store.arch` 包含 `-store` 或 `-apm` 后缀导致路径替换异常的问题,现在会通过动态添加后缀来构建资源请求路径,以兼容 Spark Store 和 APM Store 服务器不同的资源组织结构。
15 lines
519 B
TypeScript
15 lines
519 B
TypeScript
import { ref } from "vue";
|
|
import type { App, StoreMode } from "./typedefinition";
|
|
|
|
export const APM_STORE_BASE_URL: string =
|
|
import.meta.env.VITE_APM_STORE_BASE_URL || "";
|
|
|
|
export const APM_STORE_STATS_BASE_URL: string =
|
|
import.meta.env.VITE_APM_STORE_STATS_BASE_URL || "";
|
|
|
|
// 下面的变量用于存储当前应用的信息,其实用在多个组件中
|
|
export const currentApp = ref<App | null>(null);
|
|
export const currentAppIsInstalled = ref(false);
|
|
|
|
export const currentStoreMode = ref<StoreMode>("hybrid");
|