lifanagju_citu 10 ماه پیش
والد
کامیت
bca73feca6
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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 || []
 }