Update modified immediately when entering a folder
This commit is contained in:
parent
c8d5f335b1
commit
dd37238510
|
@ -234,7 +234,7 @@ let modifiedTimer: any = null
|
|||
const updateModified = () => {
|
||||
for (const doc of props.documents) doc.modified = formatUnixDate(doc.mtime)
|
||||
}
|
||||
onMounted(() => { modifiedTimer = setInterval(updateModified, 1000) })
|
||||
onMounted(() => { updateModified(); modifiedTimer = setInterval(updateModified, 1000) })
|
||||
onUnmounted(() => { clearInterval(modifiedTimer) })
|
||||
const mkdir = (doc: Document, name: string) => {
|
||||
const control = connect(controlUrl, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user