mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-07 09:57:37 +00:00
fix: 重命名别人共享的文件后不见了
This commit is contained in:
parent
b2d97bd5f1
commit
f7d4f42551
@ -248,8 +248,12 @@ class FileController extends AbstractController
|
||||
$file->name = $name;
|
||||
$file->handleDuplicateName();
|
||||
$file->save();
|
||||
$file->pushMsg('update', $file);
|
||||
return Base::retSuccess('修改成功', $file);
|
||||
$data = [
|
||||
'id' => $file->id,
|
||||
'name' => $file->name,
|
||||
];
|
||||
$file->pushMsg('update', $data);
|
||||
return Base::retSuccess('修改成功', $data);
|
||||
} else {
|
||||
// 添加
|
||||
if (!in_array($type, [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user