捕获图纸打开失败异常

pull/452/head
ChenX 5 years ago
parent 1ba50bf28f
commit 6ca1166e59

@ -67,6 +67,8 @@ export class FileServer extends Singleton
async OpenFile(fid: string)
{
if (this.m_CurFileId !== fid)
{
try
{
let info = await this.GetFileInfo(fid);
app.OpenFile(new CADFiler(JSON.parse(info.file)));
@ -75,6 +77,11 @@ export class FileServer extends Singleton
appUi.setDocumentName(info.name);
RightPanelStore.GetInstance().lightStore.InitScene();
}
catch (error)
{
app.Editor.Prompt("打开图纸失败,可能图纸是由更新的版本创建.");
}
}
}
//读取文件列表
async ReadFileList(): Promise<IFileInfo[]>

Loading…
Cancel
Save