Eagle 2 долоо хоног өмнө
parent
commit
d23a19934c

+ 3 - 1
src/views/task/amplify/index.vue

@@ -590,7 +590,9 @@ const viewLog = row => {
   }
   const paths = row.outputImagePath.split('\n')
   for (let path of paths) {
-    const url = '/api/profile' + (row.remarks === 'PERSISTENCE' ? row.outputImagePath + '/log.log' : row.remarks)
+    let p = row.remarks === 'PERSISTENCE' ? row.outputImagePath.split('amplify') : row.remarks.split('amplify')
+    console.log(p)
+    const url = '/api/profile/amplify' + p[p.length - 1] + (row.remarks === 'PERSISTENCE' ? '/log.log' : '')
     logShow(url)
     dialogVisible.value = true
     timer2.value = setInterval(() => {