Skip to content

Commit c833261

Browse files
committed
chore: cleanup syntax
1 parent 5c8d83b commit c833261

File tree

1 file changed

+1
-1
lines changed
  • packages/app-backend-vue2/src/components

1 file changed

+1
-1
lines changed

packages/app-backend-vue2/src/components/tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ async function capture (instance, index?: number, list?: any[]): Promise<Compone
275275
ret.consoleId = consoleId > -1 ? '$vm' + consoleId : null
276276

277277
// check router view
278-
const isRouterView2 = instance.$vnode && instance.$vnode.data && instance.$vnode.data.routerView
278+
const isRouterView2 = instance.$vnode?.data?.routerView
279279
if (instance._routerView || isRouterView2) {
280280
ret.isRouterView = true
281281
if (!instance._inactive && instance.$route) {

0 commit comments

Comments
 (0)