fix:发版备份

This commit is contained in:
1708-huayu 2025-01-15 19:36:36 +08:00
parent 7c5ddacbaa
commit 76cd767afa
2 changed files with 5 additions and 3 deletions

View File

@ -45,9 +45,11 @@ http {
# 第二个页面的配置
location ^~ /mobile/ {
root /usr/share/nginx/html;
# index index.html index.htm;
# try_files $uri $uri.html $uri/ =404;
alias /usr/share/nginx/html/mobile/;
index index.html index.htm;
try_files $uri $uri.html $uri/ =404;
try_files $uri $uri/ /mobile/index.html;
}
location ^~ /todo-server/ {

View File

@ -9,7 +9,7 @@ export default function Home() {
useEffect(()=>{
if(localStorage.getItem('platform-security')){
if (isMobile){
window.location.href = 'http://www.huaruyu.com/mobile'
window.location.href = 'http://www.huaruyu.com:80/mobile/listTask'
}else {
replace("/task/project")
}