|
@@ -53,7 +53,7 @@
|
53
|
53
|
|
54
|
54
|
<script setup>
|
55
|
55
|
import { ref, reactive } from 'vue'
|
56
|
|
- import { onLoad } from '@dcloudio/uni-app'
|
|
56
|
+ import { onLoad, onTabItemTap } from '@dcloudio/uni-app'
|
57
|
57
|
import { api_incident_count } from "@/http/api.js"
|
58
|
58
|
import { defaultColor } from '@/static/js/theme.js'
|
59
|
59
|
import { useSetTitle } from '@/share/useSetTitle.js'
|
|
@@ -139,8 +139,17 @@
|
139
|
139
|
})
|
140
|
140
|
}
|
141
|
141
|
|
142
|
|
- onLoad((option) => {
|
|
142
|
+ // 初始化
|
|
143
|
+ function onLoadFn(){
|
143
|
144
|
getCount();
|
|
145
|
+ }
|
|
146
|
+
|
|
147
|
+ onLoad((option) => {
|
|
148
|
+ onLoadFn();
|
|
149
|
+ })
|
|
150
|
+
|
|
151
|
+ onTabItemTap(e => {
|
|
152
|
+ onLoadFn();
|
144
|
153
|
})
|
145
|
154
|
</script>
|
146
|
155
|
|