Skip to content

Commit 7bf86e5

Browse files
committed
fix(vue2): subscribeAction might be null, close #1695
1 parent d35a998 commit 7bf86e5

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
@@ -164,7 +164,7 @@ export function setupPlugin (api: DevtoolsApi, app: App, Vue) {
164164
})
165165
})
166166

167-
store.subscribeAction({
167+
store.subscribeAction?.({
168168
before: (action, state) => {
169169
const data: any = {}
170170
if (action.payload) {

0 commit comments

Comments
 (0)