Add support for Android and iOS (#96)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2024-08-04 13:13:13 +08:00
1 parent 5843f9c837
commit af0c3db0f4
73 files changed
+2163 -21

No files matched your search

+7 -5
View File
@@ -1,5 +1,4 @@
<script lang="ts">
import { login } from '@/utils';
import { defineComponent } from 'vue';
interface IData {
@@ -10,12 +9,15 @@ export default defineComponent({
name: 'AuthLogin',
data(): IData {
return {
redirect: this.$route.query.redirect?.toString() || '/'
redirect: this.$route.query.redirect?.toString()
};
},
async mounted() {
login({ redirect: this.redirect });
},
methods: {}
if (!!this.$store.state.token.access) {
this.$router.push(this.redirect || '/');
} else {
this.$store.dispatch('login');
}
}
});
</script>