yerong 4 years ago
parent
commit
c5c3da76fd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/index/scan.vue

+ 2 - 2
src/components/index/scan.vue

@@ -39,9 +39,9 @@ export default {
     toLogin() {
       let $params = {
         access_token: 11,
-        user_name: username
+        user_name: this.username
       }
-      $this.$fly.post('user/user-name', $params).then((res)=>{
+      this.$fly.post('user/user-name', $params).then((res)=>{
         console.log(res)
       })
     }