修改 ui打包配置

This commit is contained in:
小肥羊 2025-11-06 16:24:31 +08:00
parent 54ba342153
commit a31352b8f5
3 changed files with 6 additions and 3 deletions

View File

@ -49,6 +49,9 @@
</ItemGroup>
<ItemGroup>
<None Include="WebUI\dist\**\*.*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<Content Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>

View File

@ -13,7 +13,7 @@
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger/index.html",
"launchUrl": "ui/index.html",
"applicationUrl": "http://*:5238",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"

View File

@ -1,5 +1,5 @@
# 线上环境平台打包路径
VITE_PUBLIC_PATH = /
VITE_PUBLIC_PATH = /ui/
# 线上环境路由历史模式Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数"
VITE_ROUTER_HISTORY = "hash"
@ -13,4 +13,4 @@ VITE_CDN = false
VITE_COMPRESSION = "none"
VITE_API_BASEURL = "https://videoanalysis.w.23544.com:8843/"
VITE_API_BASEURL = "/"