提交 fb148021 编写于 作者: D DCloud_LXH

fix: vuex3 hotUpdate

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