Ver código fonte

Update cloudPractice.tsx

lex-xin 8 meses atrás
pai
commit
ddbf37fe02
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      src/views/cloudPractice/cloudPractice.tsx

+ 1 - 2
src/views/cloudPractice/cloudPractice.tsx

@@ -737,13 +737,13 @@ export default defineComponent({
 
       const toDetail = async () => {
          const row: any = activeItem.value
+         state.imgs = []
          if (row.musicSheetType === "SINGLE") {
             loading.value = false
             state.musicPdfUrl = row.musicPdfUrl
 
             if (userStoreHook.roles === "GYM") {
                const imgs = row.musicImg ? row.musicImg.split(",") : []
-               state.imgs = []
                imgs.forEach(async (item: string, index: number) => {
                   const imgCanvas = await imgToCanvas(item)
                   const img = await canvasAddTitle(imgCanvas, row.name)
@@ -780,7 +780,6 @@ export default defineComponent({
          })
          // 初始化数据
          // 是否显示总谱
-         console.log(row, "rows")
          if (row.isScoreRender) {
             partColumns.value.unshift({
                label: "总谱",