删除冗余

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) { router.beforeEach(function(to, from, next) {
// console.log(router.app.$options.store.commit('routers'),'router.app.$options.store') // console.log(router.app.$options.store.commit('routers'),'router.app.$options.store')
document.title = Setting.titleSuffix;
if (to.path == "/login") { if (to.path == "/login") {
localStorage.removeItem(Setting.tokenKey); localStorage.removeItem(Setting.tokenKey);
sessionStorage.removeItem("handelPermission"); sessionStorage.removeItem("handelPermission");

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

Loading…
Cancel
Save