@/utils#filterFileName JavaScript Examples
The following examples show how to use
@/utils#filterFileName.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MyList.js From lx-music-mobile with Apache License 2.0 | 6 votes |
exportList = async(list, path) => {
const data = JSON.parse(JSON.stringify({
type: 'playListPart',
data: list,
}))
for (const item of data.data.list) {
if (item.otherSource) delete item.otherSource
if (item.lrc) delete item.lrc
}
try {
await handleSaveFile(path + `/lx_list_part_${filterFileName(list.name)}.lxmc`, data)
} catch (error) {
log.error(error.stack)
}
}