mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 03:32:40 +08:00
解决文档空间链接复制授权登录无法进入的bug
This commit is contained in:
parent
867315a19d
commit
ed79c8cd49
|
@ -61,6 +61,7 @@ export default {
|
|||
let clientId = applicationId;
|
||||
let useServerConf = false;
|
||||
// 获取gitea配置的参数
|
||||
await networkSvc.getServerConf();
|
||||
const confClientId = store.getters['data/serverConf'].giteaClientId;
|
||||
const confServerUrl = store.getters['data/serverConf'].giteaUrl;
|
||||
// 存在gitea配置则使用后端配置
|
||||
|
|
|
@ -63,6 +63,7 @@ export default {
|
|||
* https://developer.github.com/apps/building-oauth-apps/authorization-options-for-oauth-apps/
|
||||
*/
|
||||
async startOauth2(scopes, sub = null, silent = false) {
|
||||
await networkSvc.getServerConf();
|
||||
const clientId = store.getters['data/serverConf'].githubClientId;
|
||||
|
||||
// Get an OAuth2 code
|
||||
|
|
|
@ -18,6 +18,7 @@ export default {
|
|||
* https://developer.wordpress.com/docs/oauth2/
|
||||
*/
|
||||
async startOauth2(sub = null, silent = false) {
|
||||
await networkSvc.getServerConf();
|
||||
const clientId = store.getters['data/serverConf'].wordpressClientId;
|
||||
|
||||
// Get an OAuth2 code
|
||||
|
|
Loading…
Reference in New Issue
Block a user