Skip to content

Commit f402008

Browse files
committed
chore(vue2): remove unnecessary condition
1 parent 40be7fd commit f402008

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/app-backend-vue2/src/plugin.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ export function setupPlugin (api: DevtoolsApi, app: App) {
3636
})
3737

3838
api.on.getInspectorTree(payload => {
39-
if (payload.app === app && payload.inspectorId === ROUTER_INSPECTOR_ID) {
39+
if (payload.inspectorId === ROUTER_INSPECTOR_ID) {
4040
payload.rootNodes = router.options.routes.map(route => formatRouteNode(router, route, '', payload.filter)).filter(Boolean)
4141
}
4242
})
4343

4444
api.on.getInspectorState(payload => {
45-
if (payload.app === app && payload.inspectorId === ROUTER_INSPECTOR_ID) {
45+
if (payload.inspectorId === ROUTER_INSPECTOR_ID) {
4646
const route = router.matcher.getRoutes().find(r => getPathId(r) === payload.nodeId)
4747
if (route) {
4848
payload.state = {
@@ -88,7 +88,7 @@ export function setupPlugin (api: DevtoolsApi, app: App) {
8888
})
8989

9090
api.on.getInspectorTree((payload) => {
91-
if (payload.app === app && payload.inspectorId === VUEX_INSPECTOR_ID) {
91+
if (payload.inspectorId === VUEX_INSPECTOR_ID) {
9292
if (payload.filter) {
9393
const nodes = []
9494
flattenStoreForInspectorTree(nodes, store._modules.root, payload.filter, '')
@@ -102,7 +102,7 @@ export function setupPlugin (api: DevtoolsApi, app: App) {
102102
})
103103

104104
api.on.getInspectorState((payload) => {
105-
if (payload.app === app && payload.inspectorId === VUEX_INSPECTOR_ID) {
105+
if (payload.inspectorId === VUEX_INSPECTOR_ID) {
106106
const modulePath = payload.nodeId
107107
const module = getStoreModule(store._modules, modulePath)
108108
// Access the getters prop to init getters cache (which is lazy)

0 commit comments

Comments
 (0)