l
This commit is contained in:
1 parent
67224546d4
commit
657b089134
2 files changed
+14
-9
No files matched your search
@@ -250,8 +250,9 @@
|
||||
|
||||
<v-main v-if="accountStore.cod2user" class="d-flex bg-main_theme">
|
||||
<router-view />
|
||||
|
||||
<v-expand-x-transition>
|
||||
<alert-default />
|
||||
</v-expand-x-transition>
|
||||
|
||||
</v-main>
|
||||
<v-main v-else class="d-flex align-center text-h3 bg-teal-lighten-2">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
|
||||
|
||||
<v-alert
|
||||
color="#C51162"
|
||||
:icon=feedalert.ico
|
||||
theme="dark"
|
||||
|
||||
max-height="40"
|
||||
width = "500"
|
||||
position="fixed"
|
||||
location = "bottom"
|
||||
@@ -15,6 +15,7 @@
|
||||
density="compact"
|
||||
>
|
||||
</v-alert>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -26,15 +27,18 @@ export default {
|
||||
|
||||
const feedalert = useAlertStore().alert
|
||||
|
||||
watch(()=>feedalert ,(newValue,oldValue)=>{
|
||||
console.log(feedalert, 'dsfsdfsdf')
|
||||
watch(()=>feedalert ,()=>{
|
||||
|
||||
setTimeout(function() {
|
||||
|
||||
feedalert.text=""
|
||||
feedalert.ico=""
|
||||
feedalert.alert = false
|
||||
}, 3000)
|
||||
|
||||
}, {deep:true})
|
||||
|
||||
setTimeout(function() {
|
||||
feedalert.alert = false
|
||||
feedalert.text=""
|
||||
}, 5000);
|
||||
|
||||
|
||||
return {
|
||||
feedalert
|
||||
|
||||
Reference in new issue
Block a user