Skip to content

Commit 34fbe70

Browse files
committed
fix undefined pluginOptions
1 parent 9c3f738 commit 34fbe70

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ const prefix = '_async_computed$'
2121

2222
const AsyncComputed = {
2323
install (Vue, pluginOptions) {
24-
pluginOptions = pluginOptions || {}
25-
2624
Vue.config
2725
.optionMergeStrategies
2826
.asyncComputed = Vue.config.optionMergeStrategies.computed
@@ -31,7 +29,7 @@ const AsyncComputed = {
3129
}
3230
}
3331

34-
function getAsyncComputedMixin (pluginOptions) {
32+
function getAsyncComputedMixin (pluginOptions = {}) {
3533
return {
3634
data () {
3735
return {

0 commit comments

Comments
 (0)