Xiao_123 преди 9 месеца
родител
ревизия
9fc89b635c

+ 1 - 1
src/utils/eventList.js

@@ -29,7 +29,7 @@ export const updateEventList = (type) => {
       // 更新账户信息
       if (type) await store.getUserAccountInfo()
       else await store.getEnterpriseUserAccountInfo()
-    }, 300000)
+    }, 200000)
 
   } else {
     clearInterval(timer.value)

+ 7 - 0
src/views/recruit/enterprise/memberCenter/myPoints/index.vue

@@ -5,6 +5,13 @@
 <script setup>
 defineOptions({ name: 'myWallet'})
 import IntegralPage from '@/views/integral/pointsManagement'
+import { useUserStore } from '@/store/user'
+
+const store = useUserStore()
+const updateAccountInfo = async () => {
+  await store.getEnterpriseUserAccountInfo()
+}
+updateAccountInfo()
 
 </script>
 

+ 5 - 1
src/views/recruit/enterprise/positionManagement/index.vue

@@ -40,6 +40,9 @@ import { useRouter } from 'vue-router'; const router = useRouter()
 import { getJobAdvertisedList } from '@/api/position'
 import { dealDictArrayData } from '@/utils/position'
 import { useI18n } from '@/hooks/web/useI18n'
+import { useUserStore } from '@/store/user'
+
+const store = useUserStore()
 
 const { t } = useI18n()
 const total = ref(0)
@@ -72,8 +75,9 @@ const textItem = ref({
   appendInnerIcon: 'mdi-magnify'
 })
 
-const handleAdd = () => {
+const handleAdd = async () => {
   router.push('/recruit/enterprise/position/add')
+  await store.getEnterpriseUserAccountInfo()
 }
 
 

+ 7 - 0
src/views/recruit/personal/PersonalCenter/index.vue

@@ -14,6 +14,13 @@ defineOptions({ name: 'personal-center'})
 
 import LeftPage from './dynamic/left.vue'
 import RightPage from './dynamic/right.vue'
+import { useUserStore } from '@/store/user'
+
+const store = useUserStore()
+const updateAccountInfo = async () => {
+  await store.getUserAccountInfo()
+}
+updateAccountInfo()
 </script>
 
 <style scoped lang="scss">

+ 7 - 0
src/views/recruit/personal/myWallet/index.vue

@@ -5,6 +5,13 @@
 <script setup>
 defineOptions({ name: 'myWallet'})
 import IntegralPage from '@/views/integral/pointsManagement'
+import { useUserStore } from '@/store/user'
+
+const store = useUserStore()
+const updateAccountInfo = async () => {
+  await store.getUserAccountInfo()
+}
+updateAccountInfo()
 
 </script>