This commit is contained in:
こぴなたみぽ
2018-02-15 17:24:52 +09:00
parent 0766a76348
commit 9fd00d1179
51 changed files with 93 additions and 93 deletions

View File

@ -112,7 +112,7 @@
this.app = this.session.app;
this.cancel = () => {
this.api('auth/deny', {
this.$root.$data.os.api('auth/deny', {
token: this.session.token
}).then(() => {
this.$emit('denied');
@ -120,7 +120,7 @@
};
this.accept = () => {
this.api('auth/accept', {
this.$root.$data.os.api('auth/accept', {
token: this.session.token
}).then(() => {
this.$emit('accepted');

View File

@ -96,7 +96,7 @@
if (!this.SIGNIN) return;
// Fetch session
this.api('auth/session/show', {
this.$root.$data.os.api('auth/session/show', {
token: this.token
}).then(session => {
this.session = session;
@ -104,7 +104,7 @@
// 既に連携していた場合
if (this.session.app.is_authorized) {
this.api('auth/accept', {
this.$root.$data.os.api('auth/accept', {
token: this.session.token
}).then(() => {
this.accepted();