|
@@ -268,7 +268,7 @@ const handleDetails = async (id) => {
|
|
|
detail.value = result || {}
|
|
|
|
|
|
if (result?.origin_source) {
|
|
|
- const list = JSON.parse(result.origin_source)
|
|
|
+ const list = typeof result.origin_source === 'string' ? JSON.parse(result.origin_source) : result.origin_source
|
|
|
// 时间排序
|
|
|
const sortedList = list.sort((a, b) => new Date(b.source_date) - new Date(a.source_date))
|
|
|
sourceList.value = sortedList.map(e => {
|
|
@@ -280,7 +280,7 @@ const handleDetails = async (id) => {
|
|
|
}
|
|
|
|
|
|
if (e.task_type === '招聘') { // 门墩儿招聘-人员信息在组件中通过id和userId获取
|
|
|
- const obj = JSON.parse(e.minio_path)
|
|
|
+ const obj = typeof e.minio_path === 'string' ? JSON.parse(e.minio_path) : e.minio_path
|
|
|
personId.value = obj?.id || ''
|
|
|
userId.value = obj?.userId || ''
|
|
|
activeName.value = 'info'
|