Skip to content

Commit

Permalink
add export html
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoyaoo committed Aug 13, 2024
1 parent b940e0b commit fa24db9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
localStorage.setItem('isUseLocalData', 't') // 't' : 'f'
localStorage.setItem('isUseLocalData', 'f') // 't' : 'f'
const local_msg_count = 772
const local_mywxid = 'shouhuan'
const local_user_list = {}
Expand Down
3 changes: 2 additions & 1 deletion src/components/chatBackup/ExportHTML.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const handDatetimeChildData = (val: any) => {
<!-- <strong>时间(默认全部):</strong>-->
<!-- <DateTimeSelect @datetime="handDatetimeChildData"/>-->
<!-- </div>-->

<span>使用说明:(1)根据 https://blog.csdn.net/meser88/article/details/130229417 进行设置</span><br/>
<span>(2)打开导出的文件夹位置,使用第一步设置的浏览器打开 index.html 文件</span>
<div style="position: relative;">
<el-button type="primary" @click="requestExport()">导出</el-button>
</div>
Expand Down
9 changes: 9 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,13 @@ export default defineConfig({
},
},
},
// build: {
// rollupOptions: {
// output: {
// chunkFileNames: 'js-[name]-[hash].js',
// entryFileNames: 'js-[name]-[hash].js',
// assetFileNames: '[ext]-[name]-[hash][extname]',
// }
// }
// }
})

0 comments on commit fa24db9

Please sign in to comment.