解决文档空间链接复制授权登录无法进入的bug

This commit is contained in:
xiaoqi.cxq 2022-10-13 13:53:06 +08:00
parent 867315a19d
commit ed79c8cd49
3 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,7 @@ export default {
let clientId = applicationId; let clientId = applicationId;
let useServerConf = false; let useServerConf = false;
// 获取gitea配置的参数 // 获取gitea配置的参数
await networkSvc.getServerConf();
const confClientId = store.getters['data/serverConf'].giteaClientId; const confClientId = store.getters['data/serverConf'].giteaClientId;
const confServerUrl = store.getters['data/serverConf'].giteaUrl; const confServerUrl = store.getters['data/serverConf'].giteaUrl;
// 存在gitea配置则使用后端配置 // 存在gitea配置则使用后端配置

View File

@ -63,6 +63,7 @@ export default {
* https://developer.github.com/apps/building-oauth-apps/authorization-options-for-oauth-apps/ * https://developer.github.com/apps/building-oauth-apps/authorization-options-for-oauth-apps/
*/ */
async startOauth2(scopes, sub = null, silent = false) { async startOauth2(scopes, sub = null, silent = false) {
await networkSvc.getServerConf();
const clientId = store.getters['data/serverConf'].githubClientId; const clientId = store.getters['data/serverConf'].githubClientId;
// Get an OAuth2 code // Get an OAuth2 code

View File

@ -18,6 +18,7 @@ export default {
* https://developer.wordpress.com/docs/oauth2/ * https://developer.wordpress.com/docs/oauth2/
*/ */
async startOauth2(sub = null, silent = false) { async startOauth2(sub = null, silent = false) {
await networkSvc.getServerConf();
const clientId = store.getters['data/serverConf'].wordpressClientId; const clientId = store.getters['data/serverConf'].wordpressClientId;
// Get an OAuth2 code // Get an OAuth2 code