35 lines
517 B
Vue
35 lines
517 B
Vue
|
|
<template>
|
|
<view class="content">
|
|
<button type="default" @click="login">登录</button>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { auth } from '@/apis/interfaces/auth'
|
|
import keyPhone from '@/public/keyPhone'
|
|
export default {
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
onLoad() {
|
|
console.log(this.$store.state)
|
|
},
|
|
methods: {
|
|
login(){
|
|
keyPhone.keyAuth().then(res => {
|
|
console.log(res)
|
|
}).catch(err =>{
|
|
console.log(err)
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style>
|