fix:发版备份
This commit is contained in:
parent
7c5ddacbaa
commit
76cd767afa
|
@ -45,9 +45,11 @@ http {
|
||||||
|
|
||||||
# 第二个页面的配置
|
# 第二个页面的配置
|
||||||
location ^~ /mobile/ {
|
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;
|
index index.html index.htm;
|
||||||
try_files $uri $uri.html $uri/ =404;
|
try_files $uri $uri/ /mobile/index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /todo-server/ {
|
location ^~ /todo-server/ {
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default function Home() {
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
if(localStorage.getItem('platform-security')){
|
if(localStorage.getItem('platform-security')){
|
||||||
if (isMobile){
|
if (isMobile){
|
||||||
window.location.href = 'http://www.huaruyu.com/mobile'
|
window.location.href = 'http://www.huaruyu.com:80/mobile/listTask'
|
||||||
}else {
|
}else {
|
||||||
replace("/task/project")
|
replace("/task/project")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue