I just added a common component alert when I reported such an error. I don"t know what it means.
:
alert component:
<template>
<div class="alert">
<div class="alert-warp">
<div class="text">
{{alertMsg}}
</div>
</div>
</div>
</template>
<script>
import {mapState} from "vuex"
export default {
data(){
return {}
},
// vuex getters
computed: mapState({
alertMsg: state => state.com.alertMsg
})
}
</script>
call
in APP.vue<template>
<div id="app">
<v-toast v-show="showToast"></v-toast>
<v-alert v-show="showAlert"></v-alert>
</div>
</template>
<script>
import toast from "@/components/toast"
import alert from "@/components/alert"
import {mapGetters,mapActions} from "vuex"
export default {
name:"App",
comments:{
"v-toast": toast,
"v-alert": alert
},
data (){
return {
}
}
}
</script>