|
@@ -33,7 +33,7 @@
|
|
|
selected.value = treeData.value[0];
|
|
|
}
|
|
|
|
|
|
- function openFile(id?: string) {
|
|
|
+ function openFile({ id }: Record<string, string> = {}) {
|
|
|
if (!id) return;
|
|
|
processFile(id).then((path) => {
|
|
|
postMessage('MKY_Open_Mxweb', path);
|
|
@@ -55,7 +55,7 @@
|
|
|
registHook('MKY_Open_File_Complete', () => {
|
|
|
unregistHook('MKY_Open_File_Complete');
|
|
|
getTreeList().then(() => {
|
|
|
- openFile(selected.value.id);
|
|
|
+ openFile(selected.value);
|
|
|
});
|
|
|
});
|
|
|
});
|