File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<a-popover
3
+ v-model =" visible"
3
4
trigger =" click"
4
5
placement =" bottomRight"
5
6
:autoAdjustOverflow =" true"
@@ -50,19 +51,21 @@ export default {
50
51
name: ' HeaderNotice' ,
51
52
data () {
52
53
return {
53
- loadding: false
54
+ loadding: false ,
55
+ visible: false
54
56
}
55
57
},
56
58
methods: {
57
59
fetchNotice () {
58
- if (this .loadding ) {
60
+ if (! this .visible ) {
61
+ this .loadding = true
62
+ setTimeout (() => {
63
+ this .loadding = false
64
+ }, 2000 )
65
+ } else {
59
66
this .loadding = false
60
- return
61
67
}
62
- this .loadding = true
63
- setTimeout (() => {
64
- this .loadding = false
65
- }, 2000 )
68
+ this .visible = ! this .visible
66
69
}
67
70
}
68
71
}
@@ -82,4 +85,4 @@ export default {
82
85
vertical-align : initial ;
83
86
}
84
87
}
85
- </style >
88
+ </style >
You can’t perform that action at this time.
0 commit comments