第三方登录页项目配置调整
This commit is contained in:
parent
a373d21deb
commit
210a7d0fdd
@ -9,9 +9,9 @@
|
||||
import { LoginParams } from '@/utils/login';
|
||||
import { thirdCountLogin } from '@/api/management/user';
|
||||
import md5 from 'js-md5';
|
||||
import { setToken, getToken, getSessionStorage } from '@/utils/auth';
|
||||
import { setToken, getToken } from '@/utils/auth';
|
||||
// , ProjectLoginStyleList, VersionBaseNoShow, MainBodyNoShow, NoQrcodeList, localPackageProject, RegisterCodeList
|
||||
import { loginInfo, ProjectIcon } from '@/scripts/ProjectConfig';
|
||||
// import { loginInfo, ProjectIcon } from '@/scripts/ProjectConfig';
|
||||
|
||||
export default {
|
||||
name:'ThirdLogin',
|
||||
@ -26,12 +26,12 @@ export default {
|
||||
return project || 'login';
|
||||
}
|
||||
},
|
||||
created() {
|
||||
const project = getSessionStorage('project');
|
||||
if (project) {
|
||||
document.querySelector("link[rel*='icon']").href = loginInfo[project].linkIcon || ProjectIcon[project];
|
||||
}
|
||||
},
|
||||
// created() {
|
||||
// const project = getSessionStorage('project');
|
||||
// if (project) {
|
||||
// document.querySelector("link[rel*='icon']").href = loginInfo[project].linkIcon || ProjectIcon[project];
|
||||
// }
|
||||
// },
|
||||
mounted() {
|
||||
const userId = this.$route.query.userId;
|
||||
const paccount = this.$route.query.paccount;
|
||||
@ -42,7 +42,7 @@ export default {
|
||||
if (userId && paccount && secret == computeSecret) {
|
||||
const model = Object.assign({
|
||||
parentAccount:paccount,
|
||||
project:loginInfo[this.project].loginParam,
|
||||
project: this.$store.state.projectConfig.projectCode,
|
||||
account:userId,
|
||||
deviceCode:deviceCode
|
||||
}, LoginParams.LianKeTang);
|
||||
|
Loading…
Reference in New Issue
Block a user