第三方登录页项目配置调整

This commit is contained in:
fan 2023-04-27 13:21:50 +08:00
parent a373d21deb
commit 210a7d0fdd

View File

@ -9,9 +9,9 @@
import { LoginParams } from '@/utils/login'; import { LoginParams } from '@/utils/login';
import { thirdCountLogin } from '@/api/management/user'; import { thirdCountLogin } from '@/api/management/user';
import md5 from 'js-md5'; import md5 from 'js-md5';
import { setToken, getToken, getSessionStorage } from '@/utils/auth'; import { setToken, getToken } from '@/utils/auth';
// , ProjectLoginStyleList, VersionBaseNoShow, MainBodyNoShow, NoQrcodeList, localPackageProject, RegisterCodeList // , ProjectLoginStyleList, VersionBaseNoShow, MainBodyNoShow, NoQrcodeList, localPackageProject, RegisterCodeList
import { loginInfo, ProjectIcon } from '@/scripts/ProjectConfig'; // import { loginInfo, ProjectIcon } from '@/scripts/ProjectConfig';
export default { export default {
name:'ThirdLogin', name:'ThirdLogin',
@ -26,12 +26,12 @@ export default {
return project || 'login'; return project || 'login';
} }
}, },
created() { // created() {
const project = getSessionStorage('project'); // const project = getSessionStorage('project');
if (project) { // if (project) {
document.querySelector("link[rel*='icon']").href = loginInfo[project].linkIcon || ProjectIcon[project]; // document.querySelector("link[rel*='icon']").href = loginInfo[project].linkIcon || ProjectIcon[project];
} // }
}, // },
mounted() { mounted() {
const userId = this.$route.query.userId; const userId = this.$route.query.userId;
const paccount = this.$route.query.paccount; const paccount = this.$route.query.paccount;
@ -42,7 +42,7 @@ export default {
if (userId && paccount && secret == computeSecret) { if (userId && paccount && secret == computeSecret) {
const model = Object.assign({ const model = Object.assign({
parentAccount:paccount, parentAccount:paccount,
project:loginInfo[this.project].loginParam, project: this.$store.state.projectConfig.projectCode,
account:userId, account:userId,
deviceCode:deviceCode deviceCode:deviceCode
}, LoginParams.LianKeTang); }, LoginParams.LianKeTang);