Add support for Android and iOS (#96)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
5843f9c837
commit
af0c3db0f4
73 files changed
+2163
-21
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user