فهرست منبع

fix: fix log.log

Eagle 2 هفته پیش
والد
کامیت
d23a19934c
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/views/task/amplify/index.vue

+ 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(() => {