Skip to content
Snippets Groups Projects
Commit 87157bf6 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: bm preview error

parent 8ad21c4a
No related branches found
No related tags found
No related merge requests found
......@@ -76,10 +76,12 @@ const PUBLIC_PATH = process.env.NODE_ENV === 'production'
: path.join(__dirname, '..', '..', 'dist', 'aot')
const RECEPTOR_PATH = path.join(PUBLIC_PATH, 'res', 'image', 'receptor')
const RECEPTOR_PATH = path.join(PUBLIC_PATH, 'res', 'image')
fs.readdir(RECEPTOR_PATH, (err, files) => {
if (err)
if (err) {
console.log('reading receptor error', err)
return
}
files.forEach(file => previewFileMap.set(`res/image/receptor/${file}`, path.join(RECEPTOR_PATH, file)))
})
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment