From 835dc41f461c1a5ede774b0f9baf1600384a6509 Mon Sep 17 00:00:00 2001 From: lihuilin Date: Mon, 21 Jul 2025 16:26:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=87=8D=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- activitylink/.env.production | 11 +---------- activitylink/src/router/index.js | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) 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 }) // 导出