Browse Source

使用ref

lifanagju_citu 2 tháng trước cách đây
mục cha
commit
5b83596d4a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      pagesA/chart/index.vue

+ 2 - 2
pagesA/chart/index.vue

@@ -295,7 +295,7 @@ const positionInfo = ref({})
 const isEmployment = ref('-1')
 const isEmployment = ref('-1')
 
 
 const isStudent = ref(false) // 已测试,待开放上线 
 const isStudent = ref(false) // 已测试,待开放上线 
-// const isStudent = useUserStore.baseInfo?.type && Boolean(Number(useUserStore.baseInfo.type) === 1)
+// const isStudent = ref(useUserStore.baseInfo?.type && Boolean(Number(useUserStore.baseInfo.type) === 1))
 
 
 onMounted(() => {
 onMounted(() => {
   setTimeout(() => {
   setTimeout(() => {
@@ -522,7 +522,7 @@ async function handleSendResume () {
     return
     return
   }
   }
   let practice = null
   let practice = null
-  if (isStudent) {
+  if (isStudent.value) {
     practice = await studentDeliveryFormRef.value.getQueryParams()
     practice = await studentDeliveryFormRef.value.getQueryParams()
     if (!practice) return
     if (!practice) return
   }
   }