From 5b70a4ac5c7e60e9b6a12090395b8ef7655072e2 Mon Sep 17 00:00:00 2001 From: ZoeLeeFZ Date: Fri, 30 Oct 2020 16:02:03 +0800 Subject: [PATCH] =?UTF-8?q?!1280=20=E4=BF=AE=E5=A4=8D:=E5=90=84=E7=A7=8D?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Add-on/DrawDrilling/DrawDrillingTool.ts | 2 ++ src/UI/Components/SourceManage/FileList.tsx | 1 + src/UI/Store/UserConfigStore.ts | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/Add-on/DrawDrilling/DrawDrillingTool.ts b/src/Add-on/DrawDrilling/DrawDrillingTool.ts index 258d22a15..b0e99fb71 100644 --- a/src/Add-on/DrawDrilling/DrawDrillingTool.ts +++ b/src/Add-on/DrawDrilling/DrawDrillingTool.ts @@ -609,6 +609,8 @@ export class DrawDrillingTool extends Singleton if (isThoughtDrillsSet.has(refDrill)) continue; let refYmjEnt = (arrayLast(refDrill).Object as CylinderHole); + if (!refYmjEnt) continue; + let p2 = refYmjEnt.Position; let vec = p2.sub(p1); let angle = vec.angleTo(nor); diff --git a/src/UI/Components/SourceManage/FileList.tsx b/src/UI/Components/SourceManage/FileList.tsx index ccb5bebcf..36d1feaf9 100644 --- a/src/UI/Components/SourceManage/FileList.tsx +++ b/src/UI/Components/SourceManage/FileList.tsx @@ -99,6 +99,7 @@ export class FileList extends React.Component { { window.open(`${CURRENT_HOST}/CAD-fileSend?file_id=${[...this.props.selectIds].join(",")}`); diff --git a/src/UI/Store/UserConfigStore.ts b/src/UI/Store/UserConfigStore.ts index da929d774..97c3a6290 100644 --- a/src/UI/Store/UserConfigStore.ts +++ b/src/UI/Store/UserConfigStore.ts @@ -315,6 +315,8 @@ export class UserConfigStore extends Singleton dbStore.Delete(StoreName.ConfigData, GetIndexDBID(type)); dbStore.Delete(StoreName.ConfigVersion, GetIndexDBID(type)); appCache.delete(type); + store.configName = ""; + return; } //切换到第一项 if (store.configsNames.length > 0)