Explorar o código

fix: can't export data in log

Ahmad Kholid %!s(int64=3) %!d(string=hai) anos
pai
achega
a88b1ff781
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/components/newtab/logs/LogsDataViewer.vue

+ 5 - 1
src/components/newtab/logs/LogsDataViewer.vue

@@ -92,6 +92,10 @@ const dataStr = computed(() => {
 });
 
 function exportData(type) {
-  dataExporter(props.log.data, { name: state.fileName, type }, true);
+  dataExporter(
+    props.log.data?.table || props.log.data,
+    { name: state.fileName, type },
+    true
+  );
 }
 </script>