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