bugfix: add modified to dirs
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
parent
0fb55444f7
commit
126c8c40f7
@ -64,7 +64,8 @@ export const actions: ActionTree<FileState, RootState> = {
|
||||
commit('setCreateDir', {
|
||||
item: {
|
||||
path: path.length ? path+"/"+dir.dirname : dir.dirname,
|
||||
root: root
|
||||
root: root,
|
||||
modified: dir.modified * 1000
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -200,9 +200,9 @@ export const mutations: MutationTree<FileState> = {
|
||||
parent.push({
|
||||
isDirectory: true,
|
||||
filename: dirname,
|
||||
modified: new Date(),
|
||||
modified: payload.item.modified ?? new Date(),
|
||||
childrens: [],
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user