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 = () => {
|
const updateModified = () => {
|
||||||
for (const doc of props.documents) doc.modified = formatUnixDate(doc.mtime)
|
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) })
|
onUnmounted(() => { clearInterval(modifiedTimer) })
|
||||||
const mkdir = (doc: Document, name: string) => {
|
const mkdir = (doc: Document, name: string) => {
|
||||||
const control = connect(controlUrl, {
|
const control = connect(controlUrl, {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user