|
@@ -286,6 +286,7 @@ const resetQuery = () => {
|
|
|
const dealData = (item) => {
|
|
|
itemData.value = { ...item }
|
|
|
careerTrajectory.value = item?.career_path ? JSON.parse(JSON.stringify(item.career_path)) : []
|
|
|
+ if (!careerTrajectory.value?.length) careerTrajectory.value = [{ company_name: null, position: null, current_date: null }]
|
|
|
Object.keys(formQuery.value).forEach(key => {
|
|
|
formQuery.value[key] = item[key] || null
|
|
|
})
|
|
@@ -354,7 +355,7 @@ const formQuery = ref({
|
|
|
postal_code_zh: undefined,
|
|
|
postal_code_en: undefined,
|
|
|
})
|
|
|
-const careerTrajectory = ref([])
|
|
|
+const careerTrajectory = ref([{ company_name: null, position: null, current_date: null }])
|
|
|
|
|
|
const file = ref(null)
|
|
|
const uploadChange = (raw) => {
|