nieyuge 2 years ago
parent
commit
60784a8cf5
1 changed files with 1 additions and 1 deletions
  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 }) => {
 const twitterLogin = (data: { authToken: string, consumerKey: string }) => {
-    let verifier = getCookie(storageKey.verifier)
+    let verifier = JSON.parse(getCookie(storageKey.verifier));
     if (verifier) {
     if (verifier) {
         postRequest(Api.twitterLogin,  {
         postRequest(Api.twitterLogin,  {
             params: {
             params: {