登录完成,等接口完成

This commit is contained in:
aixianling
2023-01-13 11:42:08 +08:00
parent 6fc33e31e0
commit 9c26e09326
5 changed files with 18 additions and 14 deletions

View File

@@ -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>