Browse Source

去掉重定向

lihuilin/feature-20250718094329-25周年庆后台
lihuilin 4 weeks ago
parent
commit
835dc41f46
  1. 11
      activitylink/.env.production
  2. 2
      activitylink/src/router/index.js

11
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

2
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
})
// 导出

Loading…
Cancel
Save