@@ -27,7 +27,8 @@ module.exports = app => {
orders: [['id', 'desc']]
});
for (const f of files) {
- delete f.filepath;
+ f.filepath = this.ctx.app.config.fujianOssPath + f.filepath;
+ if (this.ctx.helper.canPreview(f.fileext)) f.viewpath = f.filepath;
}
return files;