删除冗余

dev_2022-05-11
yujialong 3 years ago
parent c7e5289a06
commit 6821b9d69a
  1. 2
      src/router/index.js
  2. 7
      src/setting.js

@ -247,7 +247,7 @@ function getPermission() {
// 权限
router.beforeEach(function(to, from, next) {
// console.log(router.app.$options.store.commit('routers'),'router.app.$options.store')
document.title = Setting.titleSuffix;
if (to.path == "/login") {
localStorage.removeItem(Setting.tokenKey);
sessionStorage.removeItem("handelPermission");

@ -12,33 +12,27 @@ const isTest = url.includes('39.108.250.202'); //是否中台测试服
let jumpPath = "";
let host = "";
let title = "";
let schoolId = null;
if (isHh) {
// 河海
host = "http://10.196.131.73/";
title = "教师管理端";
schoolId = 729;
} else if (isCH) {
// 巢湖
host = "http://120.78.127.12/";
title = "教师管理端";
schoolId = 1006;
} else if (isBeta) {
// 职站测试
host = "http://120.78.198.231/";
title = "职站服务端管理系统";
schoolId = 2105;
} else if (isPro) {
// 职站生产
host = "http://www.occupationlab.com/";
title = "职站服务端管理系统";
schoolId = 2105;
} else if (isTest){
jumpPath = "http://39.108.250.202/judgmentPoint/";
host = "http://39.108.250.202:9000/";
title = "职站服务端管理系统";
schoolId = 2105;
} else if (isDev) {
jumpPath = "http://192.168.31.154:8087/";
// host = "http://39.108.250.202:9000/"; // 中台测试服
@ -46,7 +40,6 @@ if (isHh) {
// host = "http://192.168.31.125:9000/"; // 坤
// host = 'http://192.168.31.137:9000/'; // 赓
title = "职站服务端管理系统";
schoolId = 2105;
} else {
console.log("其它版本");
}

Loading…
Cancel
Save