Answer the question
In order to leave comments, you need to log in
Why is Vuex so weird?
I use Vuex and element.io
There is a dialog box
It has a visible parameter, if true, then the window is shown
<el-dialog
title="Tips"
:visible="dialogVisible"
size="tiny"
:before-close="handleClose">
<span>This is a message</span>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose">Cancel</el-button>
<el-button type="primary" @click="handleClose">Confirm</el-button>
</span>
</el-dialog>
state: {
visible_settings: false
},
return this.$store.state.visible_settings
getVisibleSettings: state => {
return state.visible_settings;
}
return this.$store.getters.getVisibleSettings
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question