|
@@ -33,9 +33,10 @@
|
|
|
selected.value = treeData.value[0];
|
|
|
}
|
|
|
|
|
|
- function openFile({ id }: Record<string, string> = {}) {
|
|
|
- if (!id) return;
|
|
|
- processFile(id).then((path) => {
|
|
|
+ function openFile(data: Record<string, string> = {}) {
|
|
|
+ selected.value = data;
|
|
|
+ if (!data.id) return;
|
|
|
+ processFile(data.id).then((path) => {
|
|
|
postMessage('MKY_Open_Mxweb', path);
|
|
|
});
|
|
|
}
|