lifanagju_citu hace 10 meses
padre
commit
bca73feca6
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/layout/company/navBar.vue

+ 2 - 0
src/layout/company/navBar.vue

@@ -185,8 +185,10 @@ const handleToAnotherEnterpriseSubmit = async () => {
   localStorage.setItem('loginType', 'enterprise')
 }
 
+const test = ref(false)
 // 企业列表
 const getEnterpriseListData = async () => {
+  if (!test.value) return
   const data = await getUserBindEnterpriseList() // 申请通过才有数据,否则空数组
   enterpriseList.value = data || []
 }