diff --git a/public/nginx.htaccess b/public/nginx.htaccess new file mode 100644 index 000000000..a8cd7842c --- /dev/null +++ b/public/nginx.htaccess @@ -0,0 +1,3 @@ +location /login_sdt { + rewrite ^ /index.html last; +} diff --git a/src/main.js b/src/main.js index ad57961d8..07507713d 100644 --- a/src/main.js +++ b/src/main.js @@ -40,6 +40,15 @@ if (getQueryPara("token")) { console.log("token222222", localStorage.getItem("token")); } +(function () { + let href = location.href; + if (href.endsWith("#/") && href.includes("/login_sdt")) { + href = href.slice(0, -2); + href = href.replace("login_sdt", "#/login_sdt"); + location.href = href; + } +})(); + window.app = Object.assign( {}, {