nieyuge 2 năm trước cách đây
mục cha
commit
60784a8cf5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/header.vue

+ 1 - 1
src/components/header.vue

@@ -107,7 +107,7 @@ const twitterAuth = () => {
 }
 
 const twitterLogin = (data: { authToken: string, consumerKey: string }) => {
-    let verifier = getCookie(storageKey.verifier)
+    let verifier = JSON.parse(getCookie(storageKey.verifier));
     if (verifier) {
         postRequest(Api.twitterLogin,  {
             params: {