diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 7bdecd966..8440db911 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -21,16 +21,16 @@ let hashTimeout // TODO 开发期多个身份切换 let debugType ="" -// if (isDev) { -// const _search = window.location.search; -// let parsed = {}; -// if (_search) { -// parsed = queryString.parse(_search); -// } -// debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' : -// window.location.search.indexOf('debug=s') != -1 ? 'student' : -// window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' -// } +if (isDev) { + const _search = window.location.search; + let parsed = {}; + if (_search) { + parsed = queryString.parse(_search); + } + debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' : + window.location.search.indexOf('debug=s') != -1 ? 'student' : + window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' +} window._debugType = debugType; export function initAxiosInterceptors(props) { initOnlineOfflineListener() diff --git a/public/react/src/modules/user/account/AccountBinding.js b/public/react/src/modules/user/account/AccountBinding.js index b36095fcb..68a642a96 100644 --- a/public/react/src/modules/user/account/AccountBinding.js +++ b/public/react/src/modules/user/account/AccountBinding.js @@ -146,6 +146,7 @@ class AccountSecure extends Component { } `}
绑定登录账号
+
@@ -203,6 +204,63 @@ class AccountSecure extends Component {
+ + {/*
*/} + {/*
*/} + {/*
*/} + + {/*
*/} + {/*
*/} + {/*
*/} + {/**/} + {/*QQ*/} + {/*
*/} + + {/*
*/} + {/*{basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users.length===0?"":{basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users[0].nickname}}*/} + {/*
*/} + + {/*
*/} + {/* this.showModal("wechat"):() => this.undologin("wechat",basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users[0].id)*/} + {/*}*/} + {/*>{basicInfo===undefined||JSON.stringify(basicInfo) == "{}"?"":basicInfo&&basicInfo.open_users.length===0 ?"绑定":"解绑"}*/} + {/*
*/} + + {/*
*/} + {/*
*/} + {/**/} + {/**/} + {/*
*/} + {/**/} + {/*

*/} + {/*this.handleCancel()}>取消*/} + {/*

*/} + {/*
*/} + {/**/} + + + {/*
*/}
* 我们确保你所提供的信息均处于严格保密状态,不会泄露