登录完成,等接口完成
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
import {mainStore} from "../../utils/pinia";
|
||||
import AiItem from "../../components/AiItem";
|
||||
import AiBottom from "../../components/AiBottom";
|
||||
import {mapActions} from "pinia/dist/pinia";
|
||||
|
||||
export default {
|
||||
name: "AppAuth",
|
||||
@@ -30,16 +31,13 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapActions(mainStore, ['getToken', 'getCode']),
|
||||
handleAvatar({detail}) {
|
||||
this.form.avatar = detail.avatarUrl
|
||||
},
|
||||
handleSignIn() {
|
||||
this.store.getCode().then(code => this.store.getToken({...this.form, code})).then(() => uni.navigateBack())
|
||||
this.getCode().then(code => this.getToken({...this.form, code})).then(() => uni.navigateBack())
|
||||
}
|
||||
},
|
||||
setup() {
|
||||
const store = mainStore()
|
||||
return {store}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user