Selaa lähdekoodia

fix: bug修复

TIANYONG 4 kuukautta sitten
vanhempi
commit
625c5d2cc3
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 6 1
      src/views/creation/index-share.tsx

+ 6 - 1
src/views/creation/index-share.tsx

@@ -39,7 +39,8 @@ import {
   getAuth,
   getGradeCh,
   getSecondRPM,
-  removeAuth
+  removeAuth,
+  setAuth
 } from '@/helpers/utils'
 import { postMessage, promisefiyPostMessage } from '@/helpers/native-message'
 import { onBeforeRouteUpdate, useRoute, useRouter } from 'vue-router'
@@ -120,6 +121,10 @@ export default defineComponent({
     const {playStaff, pauseStaff, updateProgressStaff} = staffMoveInstance()
     // 点赞
     const onStarChange = async () => {
+      const Authorization = getAuth()
+      if (!Authorization && route.query.Authorization) {
+        setAuth(route.query.Authorization)
+      }
       await checkLogin();
       // 是否登录
       if (!state.loginTag) {