|
@@ -140,10 +140,14 @@ export default {
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
warnLength() {
|
|
warnLength() {
|
|
- return this.$store.state.warnList.length;
|
|
|
|
|
|
+ return this.$store.state.warnList.filter((it) => {
|
|
|
|
+ return !it.endts > 0;
|
|
|
|
+ }).length;
|
|
},
|
|
},
|
|
warnList() {
|
|
warnList() {
|
|
- return this.$store.state.warnList;
|
|
|
|
|
|
+ return this.$store.state.warnList.filter((it) => {
|
|
|
|
+ return !it.endts > 0;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
isLogined() {
|
|
isLogined() {
|
|
return this.$store.state.user?.loginState;
|
|
return this.$store.state.user?.loginState;
|