refactor(client): Use getters to avoid watch vuex

This commit is contained in:
syuilo 2020-05-09 15:22:50 +09:00
parent a1597047b4
commit 71e5892308
4 changed files with 112 additions and 133 deletions

View file

@ -21,7 +21,6 @@ import MkButton from '../../components/ui/button.vue';
import MkTextarea from '../../components/ui/textarea.vue';
import i18n from '../../i18n';
import { defaultDeviceUserSettings } from '../../store';
import { createMenuDef } from '../../app';
export default Vue.extend({
i18n,
@ -33,7 +32,7 @@ export default Vue.extend({
data() {
return {
menuDef: createMenuDef({}),
menuDef: this.$store.getters.nav({}),
items: '',
faListUl, faSave, faRedo
}