@@ -15,9 +15,6 @@ if (!domain) {
domain = parseHrefParam(window.location.href, "code");
if (domain) {
window.sessionStorage.setItem("ipDomainCode", domain);
- } else {
- // 本地化部署只有一个默认学校
- domain = "default-school";
}
} else {
domain = hostname.split(".")[0];
@@ -27,6 +27,8 @@ Router.prototype.push = function push(location, onResolve, onReject) {
Vue.use(Router);
let router = new Router({
+ mode: "history",
+ // 后端配置: try_files $uri $uri/ /index.html;
routes: [
{
path: "/",