出现的现象:打开debug模式,运行报前端代码错误
this.$store.state,有空存在导致,打印如下
2022-12-07 09:59:34.341062+0800 UniPluginDemo[2345:424273] <Weex>[error]WXBridgeContext.m:1310, jsLog: [JS Framework] Failed to execute the callback function:
TypeError: undefined is not an object (evaluating 'e.$store.state') __ERROR
2022-12-07 09:59:34.360700+0800 UniPluginDemo[2345:424273] <Weex>[error]WXExceptionUtils.m:38, Weex exception errCode: -9400 function: func: (null) arg:(null) message: [WX_KEY_EXCEPTION_WXBRIDGE] exception: TypeError: undefined is not an object (evaluating 'e.$store.state')
stack:launch.js:1:387189
weex-main-jsfm.js:2:1418
map@[native code]
2022-12-07 09:59:34.361281+0800 UniPluginDemo[2345:424273] <Weex>[error]WXMonitor.m:289, [WX_KEY_EXCEPTION_WXBRIDGE] exception: TypeError: undefined is not an object (evaluating 'e.$store.state')
stack:launch.