Skip to content

Commit 1484c45

Browse files
committed
fix(vue2): vuex edit in module, closes #1731
1 parent 2ff1a02 commit 1484c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export function setupPlugin (api: DevtoolsApi, app: App, Vue) {
133133
let path = payload.path
134134
if (payload.nodeId !== VUEX_ROOT_PATH) {
135135
path = [
136-
...payload.nodeId.substring(0, payload.nodeId.length - 1).split('/'),
136+
...payload.nodeId.split(VUEX_MODULE_PATH_SEPARATOR).slice(0, -1),
137137
...path,
138138
]
139139
}

0 commit comments

Comments
 (0)