fix 协作人员

This commit is contained in:
kuaifan 2021-07-07 11:29:18 +08:00
parent 6991e01201
commit 34ad840f2d
2 changed files with 5 additions and 2 deletions

View File

@ -143,7 +143,10 @@ class WebSocketService implements WebSocketHandlerInterface
$pathOld = $row->path;
$row->path = $pathNew;
$row->save();
if (preg_match("/^file\/content\/\d+$/", $pathNew) || preg_match("/^file\/content\/\d+$/", $pathOld)) {
if (preg_match("/^file\/content\/\d+$/", $pathOld)) {
$this->pushPath($pathOld);
}
if (preg_match("/^file\/content\/\d+$/", $pathNew)) {
$this->pushPath($pathNew);
}
}

View File

@ -1640,7 +1640,7 @@ export default {
if (state.wsPathValue == path) {
dispatch("websocketSend", {type: 'path', data: {path}});
}
}, 3000);
}, 1000);
},
/**