From 7f072a3fed7882989b676c6775dd67a88feddc39 Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期一, 01 九月 2025 09:40:10 +0800 Subject: [PATCH] 修改适配页面 --- manager/src/views/video/VideoList.vue | 45 +++++++++++++++++++++++++++------------------ 1 files changed, 27 insertions(+), 18 deletions(-) diff --git a/manager/src/views/video/VideoList.vue b/manager/src/views/video/VideoList.vue index ef36837..e3aa4b1 100644 --- a/manager/src/views/video/VideoList.vue +++ b/manager/src/views/video/VideoList.vue @@ -954,13 +954,19 @@ this.videoTagList = res.data; }) this.upLoadVideoShow = true; - this.chooseTag = row.tagList.map(item => { - return item.tagName - }) + console.log('--------------------->',row.tagList) + if (row.tagList){ + this.chooseTag = row.tagList.map(item => { + return item.tagName + }) + } console.log('閫変腑鍒楄〃---銆�',row.goodsList) - row.goodsList.forEach(item => { - item.goodsSkuId = item.id - }) + if (row.goodsList){ + row.goodsList.forEach(item => { + item.goodsSkuId = item.id + }) + } + this.uploadVideoForm = { id: '', title: '', @@ -977,18 +983,21 @@ } - // 閬嶅巻宸查�夋嫨鐨勬爣绛� - row.tagList.forEach(tag => { - // 妫�鏌ユ爣绛炬槸鍚﹀凡瀛樺湪浜巚ideoTagList涓� - const exists = this.videoTagList.some(item => item.tagName === tag.tagName); - // 濡傛灉涓嶅瓨鍦紝鍒欐坊鍔犲埌閫夐」鍒楄〃 - if (!exists) { - this.videoTagList.push({ - id: tag.id, // 鐢熸垚涓存椂ID - tagName: tag.tagName - }); - } - }); + if (row.tagList){ + // 閬嶅巻宸查�夋嫨鐨勬爣绛� + row.tagList.forEach(tag => { + // 妫�鏌ユ爣绛炬槸鍚﹀凡瀛樺湪浜巚ideoTagList涓� + const exists = this.videoTagList.some(item => item.tagName === tag.tagName); + // 濡傛灉涓嶅瓨鍦紝鍒欐坊鍔犲埌閫夐」鍒楄〃 + if (!exists) { + this.videoTagList.push({ + id: tag.id, // 鐢熸垚涓存椂ID + tagName: tag.tagName + }); + } + }); + } + this.uploadVideoForm = row console.log("鎵撳嵃鍊�",this.uploadVideoForm) this.uploadVideoForm.fileInfo= {}; -- Gitblit v1.8.0