yangys
2025-05-27 81060ec4cc3ead9080d4bdb3875920e257583de4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
  <basic-video ref="video" :width="350"></basic-video>
</template>
 
<script>
import { mapGetters } from 'vuex';
import basicVideo from '@/components/basic-video/main.vue';
 
export default {
  components: {
    basicVideo,
  },
  data() {
    return {
      loginForm: {
        username: 'admin',
        password: '123456',
      },
    };
  },
  created() {
    setTimeout(() => {
      this.handleLogin();
    }, 6000);
  },
  computed: {
    ...mapGetters(['tagWel']),
  },
  methods: {
    handleLogin() {
      this.$store.dispatch('LoginByUsername', this.loginForm).then(() => {
        this.$router.push(this.tagWel);
      });
    },
  },
};
</script>
 
<style></style>