diff --git a/packages/uni-h5-vue/dist/vue.runtime.cjs.js b/packages/uni-h5-vue/dist/vue.runtime.cjs.js index 3fbcca232fc5790d8cfd8ce89734dace6371f401..fb0d289bc40113dcd64be2877cdbdf03a2218d45 100644 --- a/packages/uni-h5-vue/dist/vue.runtime.cjs.js +++ b/packages/uni-h5-vue/dist/vue.runtime.cjs.js @@ -3439,7 +3439,7 @@ const KeepAliveImpl = { if (!sharedContext.renderer) { return () => slots.default && slots.default()[0]; // fixed by xxxxxx } - if (props.cache && shared.hasOwn(props, 'max')) { + if (props.cache && props.max) { // fixed by xxxxxx warn('The `max` prop will be ignored if you provide a custom caching strategy'); } const cache = props.cache || new Cache(props.max); diff --git a/packages/uni-h5-vue/dist/vue.runtime.esm.js b/packages/uni-h5-vue/dist/vue.runtime.esm.js index 003b5ab7490de62fe576a95d47f684cbbb35f75f..c7e36061f22bcb0e306d71e32294fff936d03dec 100644 --- a/packages/uni-h5-vue/dist/vue.runtime.esm.js +++ b/packages/uni-h5-vue/dist/vue.runtime.esm.js @@ -3431,7 +3431,7 @@ const KeepAliveImpl = { if (!sharedContext.renderer) { return () => slots.default && slots.default()[0]; // fixed by xxxxxx } - if ((process.env.NODE_ENV !== 'production') && props.cache && hasOwn(props, 'max')) { + if ((process.env.NODE_ENV !== 'production') && props.cache && props.max) { // fixed by xxxxxx warn('The `max` prop will be ignored if you provide a custom caching strategy'); } const cache = props.cache || new Cache(props.max);