前端页面布局修改,后台数据库结构变化,需要重新导入数据库才可使用

This commit is contained in:
pixel
2019-12-12 17:07:11 +08:00
parent ddee2e7d90
commit 284bb550c7
5 changed files with 55 additions and 58 deletions

View File

@@ -21,7 +21,7 @@ func (f *ExaFileUploadAndDownload) Upload() error {
}
func (f *ExaFileUploadAndDownload) DeleteFile() error {
err := qmsql.DEFAULTDB.Where("id = ?", f.ID).Delete(f).Error
err := qmsql.DEFAULTDB.Where("id = ?", f.ID).Unscoped().Delete(f).Error
return err
}