|
@@ -169,7 +169,7 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { computed, ref } from 'vue'
|
|
import { computed, ref } from 'vue'
|
|
|
|
|
|
|
|
-import { onLoad } from '@dcloudio/uni-app'
|
|
|
|
|
|
|
+import { onShow } from '@dcloudio/uni-app'
|
|
|
|
|
|
|
|
import { getInternalMsgCountUnreadApi } from '@/services/modules/mine/common'
|
|
import { getInternalMsgCountUnreadApi } from '@/services/modules/mine/common'
|
|
|
|
|
|
|
@@ -191,7 +191,7 @@ const hasUnreadNotification = ref(false)
|
|
|
const companyList = ref<{ name: string; color: string }[]>([])
|
|
const companyList = ref<{ name: string; color: string }[]>([])
|
|
|
const handleCompanyShow = ref(false)
|
|
const handleCompanyShow = ref(false)
|
|
|
|
|
|
|
|
-onLoad(() => {
|
|
|
|
|
|
|
+onShow(() => {
|
|
|
if (!isLoggedIn.value) return
|
|
if (!isLoggedIn.value) return
|
|
|
getInternalMsgCountUnread()
|
|
getInternalMsgCountUnread()
|
|
|
})
|
|
})
|