|
@@ -17,7 +17,7 @@
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
import Api from '../static/http/api'
|
|
import Api from '../static/http/api'
|
|
import { postRequest } from '../static/http'
|
|
import { postRequest } from '../static/http'
|
|
-import { getMid, appVersionCode, getOauthUrl, createWindow } from '../static/utils'
|
|
|
|
|
|
+import { getMid, appVersionCode, getOauthUrl, createWindow, callBackUrl } from '../static/utils'
|
|
import { getStorage, removeStorage, setStorage, storageKey } from '../static/utils/storage'
|
|
import { getStorage, removeStorage, setStorage, storageKey } from '../static/utils/storage'
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
@@ -38,7 +38,7 @@ const twitterAuth = () => {
|
|
appVersionCode,
|
|
appVersionCode,
|
|
},
|
|
},
|
|
params: {
|
|
params: {
|
|
- oauthCallback: `https://denet.me/close`
|
|
|
|
|
|
+ oauthCallback: callBackUrl
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
let { code, data, msg } = res;
|
|
let { code, data, msg } = res;
|