Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async EXPORT_TREE_XMIND (state) {
const setting = state.SETTING.EXPORT.XMIND
// 初始化
const workbook = new xmind.Workbook({
firstSheetId: setting.SHEET_NAME,
firstSheetName: setting.SHEET_NAME,
rootTopicId: state.CACHE.SCAN_FOLDER_PATH,
rootTopicName: state.CACHE.SCAN_FOLDER_PATH
})
function addTopics (items, parentTopic) {
items.forEach(item => {
const note = state.DB.NOTES[item.filePathFull]
const replaceData = {
data: {
name: item.name,
note,
ext: item.ext
}
}
const replace = require('@/util/replace.xmind.js').replace