diff --git a/activitylink/.env.production b/activitylink/.env.production index c41a545..560773c 100644 --- a/activitylink/.env.production +++ b/activitylink/.env.production @@ -1,15 +1,6 @@ -# must start with VITE_ VITE_ENV = 'production' VITE_OUTPUT_DIR = 'dist' -# public path -VITE_PUBLIC_PATH = /aixiaocaishen -# VITE_PUBLIC_PATH = / - -# Whether to open mock +VITE_PUBLIC_PATH = '/testBack/' VITE_USE_MOCK = true - -#新数据接口 -# VITE_APP_API_BASE_URL = https://api.homilychart.com/link VITE_BUILD_COMPRESS = 'none' - VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false \ No newline at end of file diff --git a/activitylink/src/router/index.js b/activitylink/src/router/index.js index c379bc5..2d35cca 100644 --- a/activitylink/src/router/index.js +++ b/activitylink/src/router/index.js @@ -67,7 +67,7 @@ const routes = [ ] // 创建路由实例 const router = createRouter({ - history: createWebHistory(import.meta.env.VITE_PUBLIC_PATH), + history: createWebHistory('/testBack/'), routes }) // 导出