|
@@ -727,7 +727,7 @@ module.exports = app => {
|
|
|
const fileInfo = await ctx.service.changeAtt.getDataById(data.id);
|
|
|
if (fileInfo !== undefined && fileInfo !== '') {
|
|
|
// 先删除文件
|
|
|
- await fs.unlinkSync(path.join(this.app.baseDir, fileInfo.filepath));
|
|
|
+ await fs.unlinkSync(path.join(this.app.baseDir, './app', fileInfo.filepath));
|
|
|
// 再删除数据库
|
|
|
await ctx.service.changeAtt.deleteById(data.id);
|
|
|
responseData.data = '';
|