소스 검색

fix: CSV column

Ahmad Kholid 3 년 전
부모
커밋
d2c8b25906
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      src/content/element-selector/index.js
  2. 1 1
      src/utils/data-exporter.js

+ 2 - 0
src/content/element-selector/index.js

@@ -2,6 +2,8 @@ import '@webcomponents/custom-elements';
 import { defineCustomElement } from 'vue';
 import ElementSelector from './ElementSelector.ce.vue';
 
+/* to-do attribute list */
+
 export default function () {
   const isElementExists = document.querySelector('element-selector');
 

+ 1 - 1
src/utils/data-exporter.js

@@ -42,7 +42,7 @@ export default function (data, { name, type }, converted) {
 
     result =
       type === 'csv'
-        ? `data:text/csv;charset=utf-8,${Papa.unparse(jsonData)}`
+        ? Papa.unparse(jsonData)
         : JSON.stringify(jsonData, null, 2);
   } else if (type === 'plain-text') {
     result = Object.values(data).join(' ');