网页title和图标调整
This commit is contained in:
parent
fe68f93aea
commit
2c729abb01
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 51 KiB |
@ -149,7 +149,6 @@ export const userPlan = '015'; // 计划系统
|
|||||||
export const userDesign='016'; // 设计系统
|
export const userDesign='016'; // 设计系统
|
||||||
const isDev = process.env.NODE_ENV === 'development';
|
const isDev = process.env.NODE_ENV === 'development';
|
||||||
|
|
||||||
|
|
||||||
export const UrlConfig = {
|
export const UrlConfig = {
|
||||||
display: '/display',
|
display: '/display',
|
||||||
scriptDisplay: '/scriptDisplay',
|
scriptDisplay: '/scriptDisplay',
|
||||||
@ -185,9 +184,6 @@ export const UrlConfig = {
|
|||||||
},
|
},
|
||||||
design: {
|
design: {
|
||||||
prefix: '/design/home',
|
prefix: '/design/home',
|
||||||
// tool: '/design/tool',
|
|
||||||
// detail: '/plan/detail',
|
|
||||||
// pay: '/plan/pay'
|
|
||||||
mapDraw: '/design/map/draw',
|
mapDraw: '/design/map/draw',
|
||||||
lessonEdit: '/design/lesson/edit',
|
lessonEdit: '/design/lesson/edit',
|
||||||
lessonHome: '/design/lesson/home',
|
lessonHome: '/design/lesson/home',
|
||||||
@ -543,38 +539,6 @@ export const asyncRouter = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/lesson',
|
|
||||||
component: Layout,
|
|
||||||
hidden: true,
|
|
||||||
meta: {
|
|
||||||
i18n: 'router.lessaonManage',
|
|
||||||
roles: [admin, lessonCreater, userDesign]
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'manage/trainingRule',
|
|
||||||
component: TrainingRuleList,
|
|
||||||
meta: {
|
|
||||||
i18n: 'router.trainingRule'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'manage/trainingRule/detail',
|
|
||||||
hidden: true,
|
|
||||||
component: TrainingRuleEdit,
|
|
||||||
meta: {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'manage/training',
|
|
||||||
component: Trainingmanage,
|
|
||||||
meta: {
|
|
||||||
i18n: 'router.trainingManage'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: '/trainingPlatform',
|
path: '/trainingPlatform',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
@ -792,13 +756,6 @@ export const asyncRouter = [
|
|||||||
i18n: 'router.publishLessonManage'
|
i18n: 'router.publishLessonManage'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// path: 'script',
|
|
||||||
// component: SimulationScript,
|
|
||||||
// meta: {
|
|
||||||
// title: '仿真脚本管理',
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
path: 'runPlan/template',
|
path: 'runPlan/template',
|
||||||
component: RunPlanTemplate,
|
component: RunPlanTemplate,
|
||||||
@ -1099,17 +1056,8 @@ const createRouter = () => new Router({
|
|||||||
const router = createRouter();
|
const router = createRouter();
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
const name = to.fullPath;
|
|
||||||
if (name.includes('/dp/') || name.includes('display/dp')) {
|
|
||||||
document.title = '琏课堂-大屏系统';
|
|
||||||
} else if (name.includes('/trainingPlatform/')) {
|
|
||||||
const project = getSessionStorage('project');
|
const project = getSessionStorage('project');
|
||||||
document.title = loginTitle[project || 'default'];
|
document.title = loginTitle[project];
|
||||||
} else if (name.includes('/design/') || name.includes('/scriptDisplay/') || name.includes('/plan/') || name.includes('/publish/') || name.includes('/orderauthor/') || name.includes('/system/') || name.includes('/display/plan/') || name.includes('/apply/') || name.includes('/display/manage/')) {
|
|
||||||
document.title = '城市轨道交通设计平台';
|
|
||||||
} else {
|
|
||||||
document.title = '琏课堂';
|
|
||||||
}
|
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
title: '琏课堂',
|
title: '城市轨道交通实训平台',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {boolean} true | false
|
* @type {boolean} true | false
|
||||||
|
@ -81,7 +81,6 @@ const user = {
|
|||||||
execFc = (token) => {
|
execFc = (token) => {
|
||||||
setToken(token);
|
setToken(token);
|
||||||
commit('SET_TOKEN', token);
|
commit('SET_TOKEN', token);
|
||||||
setSessionStorage('project', userInfo.project||'');
|
|
||||||
const header = { group: '', 'X-Token': getToken() };
|
const header = { group: '', 'X-Token': getToken() };
|
||||||
creatSubscribe(perpetualTopic, header);
|
creatSubscribe(perpetualTopic, header);
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
// 登陆配置参数
|
// 登陆配置参数
|
||||||
export const LoginParams = {
|
export const LoginParams = {
|
||||||
LianKeTang: { clientId: '1', secret: 'joylink' }, // "琏课堂"
|
LianKeTang: { clientId: '1', secret: 'joylink' }, // "城市轨道交通实训平台"
|
||||||
// DaPing: { clientId: '2', secret: 'bigscreen' }, // "大屏系统"
|
// DaPing: { clientId: '2', secret: 'bigscreen' }, // "大屏系统"
|
||||||
// LianJiHua: { clientId: '3', secret: 'linkplan' }, // "琏计划"
|
// LianJiHua: { clientId: '3', secret: 'linkplan' }, // "琏计划"
|
||||||
Assistant: { clientId: '4', secret: 'linkassistant' }, // "琏课堂助手"
|
Assistant: { clientId: '4', secret: 'linkassistant' }, // "琏课堂助手"
|
||||||
|
@ -171,7 +171,6 @@ export default {
|
|||||||
if (Cookies.get(this.cookiesName)&&Cookies.get(this.cookiesToken)) {
|
if (Cookies.get(this.cookiesName)&&Cookies.get(this.cookiesToken)) {
|
||||||
const model = {'username': Cookies.get(this.cookiesName), 'password': Cookies.get(this.cookiesToken)};
|
const model = {'username': Cookies.get(this.cookiesName), 'password': Cookies.get(this.cookiesToken)};
|
||||||
model.type = this.modelType;
|
model.type = this.modelType;
|
||||||
model.project = this.project;
|
|
||||||
this.$store.dispatch('Login', model).then(() => {
|
this.$store.dispatch('Login', model).then(() => {
|
||||||
this.$store.dispatch('SetAccount', model.username);
|
this.$store.dispatch('SetAccount', model.username);
|
||||||
this.setProjectSession();
|
this.setProjectSession();
|
||||||
@ -203,6 +202,7 @@ export default {
|
|||||||
}
|
}
|
||||||
removeToken();
|
removeToken();
|
||||||
removeDesignToken();
|
removeDesignToken();
|
||||||
|
setSessionStorage('project', this.project);
|
||||||
},
|
},
|
||||||
setProjectSession() {
|
setProjectSession() {
|
||||||
if (this.project === 'design') {
|
if (this.project === 'design') {
|
||||||
@ -282,7 +282,6 @@ export default {
|
|||||||
const model = Object.assign({}, this.loginForm);
|
const model = Object.assign({}, this.loginForm);
|
||||||
model.password = md5(model.password);
|
model.password = md5(model.password);
|
||||||
model.type = this.modelType;
|
model.type = this.modelType;
|
||||||
model.project = this.project;
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
if (this.isAutoLogin) {
|
if (this.isAutoLogin) {
|
||||||
Cookies.set(this.cookiesName, model.username, { expires: 2});
|
Cookies.set(this.cookiesName, model.username, { expires: 2});
|
||||||
|
Loading…
Reference in New Issue
Block a user