|
@@ -23,6 +23,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+var $this
|
|
|
export default {
|
|
|
name: 'scan_container',
|
|
|
data() {
|
|
@@ -37,14 +38,19 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
toLogin() {
|
|
|
+ console.log(1)
|
|
|
+ console.log($this.username)
|
|
|
let $params = {
|
|
|
access_token: 11,
|
|
|
- user_name: this.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)
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ $this = this
|
|
|
}
|
|
|
}
|
|
|
</script>
|