提交 fb148021 编写于 作者: D DCloud_LXH

fix: vuex3 hotUpdate

上级 9d64c997
......@@ -326,7 +326,8 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
'?' +
JSON.stringify({
type: 'stat'
})
}),
vuex: require.resolve('@dcloudio/vue-cli-plugin-uni/packages/vuex3')
},
modules: [
process.env.UNI_INPUT_DIR,
......
......@@ -193,8 +193,6 @@ module.exports = {
alias['vue-i18n'] = require.resolve('@dcloudio/vue-cli-plugin-uni/packages/vue3/node_modules/vue-i18n')
alias['@dcloudio/uni-app'] = require.resolve('@dcloudio/vue-cli-plugin-uni/packages/uni-app')
} else {
alias.vuex = require.resolve('@dcloudio/vue-cli-plugin-uni/packages/vuex3')
}
return {
......
......@@ -613,7 +613,7 @@ Store.prototype.hasModule = function hasModule (path) {
return this._modules.isRegistered(path)
};
Store.prototype[[[104,111,116,85,112,100,97,116,101].map(item =>String.fromCharCode(item)).join('')]] = function (newOptions) {
Store.prototype[[104,111,116,85,112,100,97,116,101].map(item =>String.fromCharCode(item)).join('')] = function (newOptions) {
this._modules.update(newOptions);
resetStore(this, true);
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册