From d2aa4c88502f4408f9b904a704180d804b5ba3c0 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 18 Jul 2023 12:17:39 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20`VITE=5FPUBLIC=5FPATH`=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E8=BF=98=E5=8E=9F=E4=B8=BA=20`/`=20=E5=AF=B9`VITE=5FR?= =?UTF-8?q?OUTER=5FHISTORY`=E4=B8=BA`h5`=E6=A8=A1=E5=BC=8F=E6=9B=B4?= =?UTF-8?q?=E5=8F=8B=E5=A5=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- .env.staging | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index b5306f204..90d1146fe 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ VITE_PORT = 8848 # 开发环境读取配置文件路径 -VITE_PUBLIC_PATH = ./ +VITE_PUBLIC_PATH = / # 开发环境路由历史模式(Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数") VITE_ROUTER_HISTORY = "hash" diff --git a/.env.production b/.env.production index ecfb5490e..84e60861e 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # 线上环境平台打包路径 -VITE_PUBLIC_PATH = ./ +VITE_PUBLIC_PATH = / # 线上环境路由历史模式(Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数") VITE_ROUTER_HISTORY = "hash" diff --git a/.env.staging b/.env.staging index 00db0cc64..65b57e3cc 100644 --- a/.env.staging +++ b/.env.staging @@ -2,7 +2,7 @@ # https://cn.vitejs.dev/guide/env-and-mode.html#modes # NODE_ENV = development -VITE_PUBLIC_PATH = ./ +VITE_PUBLIC_PATH = / # 预发布环境路由历史模式(Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数") VITE_ROUTER_HISTORY = "hash"