import path from 'path';const obj = path.parse('img/works.png');obj是undefined,官方说应该类似:{ root : "/", dir : "/home/user/dir", base : "file.txt", ext : ".txt", name : "file"}