代码调整

This commit is contained in:
joylink_cuiweidong 2022-11-28 15:17:43 +08:00
parent 751ff10406
commit 98ed313a1d
2 changed files with 7 additions and 3 deletions

View File

@ -28,7 +28,7 @@ export function getBackProjectConfigById(id) {
/** 通过code获取后端项目配置 */
export function getBackProjectConfigByCode(code) {
return request({
url: `/api/project/code/{code}`,
url: `/api/project/code/${code}`,
method: 'get'
});
}

View File

@ -91,7 +91,6 @@ export default {
this.backProject = response.data.project;
// loginProLogoHeight
const {showBackPic, wechatLogin, aboutSystem, baseDevelopment, browserTitle, homeTitle, caseShow,
containDevice, deviceRelatedMap, deviceRelatedFunction,
loginProtitle, loginProLogoWidth, loginOrgTitle, localProject, homeProLogoWidth, loginProLogo} = response.data.viewSetting;
this.showBackPic = showBackPic;
this.wechatLogin = wechatLogin;
@ -109,12 +108,14 @@ export default {
this.$store.dispatch('setLoginProLogo', this.loginProLogo);
this.$store.dispatch('setHomeTitle', homeTitle);
this.$store.dispatch('setCaseShow', caseShow);
this.$store.dispatch('setDeviceRelated', {containDevice:containDevice, deviceRelatedMap:deviceRelatedMap, deviceRelatedFunction:deviceRelatedFunction});
// this.$store.dispatch('setCaseShow', caseShow);
this.loadedConfig = true;
// helpShow
// loginContectInformation false
setSessionStorage('project', this.project);
if (this.syncLogin) {
this.deviceRelatedLogin();
}
}
}).catch(() => {
this.$messageBox('无效的登录路径,请查证路径后重试!');
@ -133,6 +134,9 @@ export default {
},
selectOrgnization(orgId) {
this.$refs.normalLogin.selectOrg(orgId);
},
deviceRelatedLogin() {
}
}
};