-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
47 lines (42 loc) · 1.14 KB
/
App.vue
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
40
41
42
43
44
45
46
47
<template>
<div id="app">
<router-view></router-view>
<CElementCover v-if="getIsLoading"
:boundaries="[{ sides: ['top', 'left'], query: '.media-body' }]"
:opacity="0.8"
>
<h1 class="d-inline">Loading... </h1>
<CSpinner size="5xl" color="success"/>
</CElementCover>
<CToaster :autohide="3000" position="top-right">
<MyCToast :show.sync="getMyToast.show" :header="getMyToast.header">
<CIcon :height="42" :name="getMyToast.icon"/>
<b>{{getMyToast.message}}</b>
</MyCToast>
</CToaster>
</div>
</template>
<script>
import {mapGetters} from 'vuex';
import MyCToast from "./components/MyCToast";
export default {
name: 'app',
components: {MyCToast},
data() {
return {}
},
created() {
if (this.getIsLogin) {
this.$store.dispatch("getTradeResult");
this.$store.dispatch("getUserAndMenus");
}
},
computed: {
...mapGetters(["getIsLoading", "getMyToast","getIsLogin"]),
}
}
</script>
<style lang="scss">
// Import Main styles for this application
@import 'assets/scss/style';
</style>