Category : vuex

I get eslint error and how to I fix it? const filter = state.playListSetData.filter(item => { // 若兩相符合,抓播放設定底下的其他資料 if (item.uuid === payload[i].playerList[j].uuid) { return item; } }); error Expected to return a value at the end of arrow function array-callback-return error Expected to return a value at the end of arrow function consistent-return for (let ..

Read more

I’m trying to learn Vuex, and I’m stuck trying to make it possible so that the number value changes every time you click on the p-element, using the mutation called changeNumber. I also want to make the number value be shown in the p-element. This is my code so far but I’m stuck: let object ..

Read more

RegisterDialog.vue: <template> <v-dialog persistent v-model="registerDialog"> <v-btn accent slot="activator" color="primary" dark @click.stop="registerDialog = true"> {{userIsRegistered ? ‘Unregister’ : ‘Register’}} </v-btn> <v-card> <v-container> <v-layout row wrap> <v-flex xs12> <v-card-title v-if="userIsRegistered">Unregister from College?</v-card-title> <v-card-title v-else>Register for College?</v-card-title> </v-flex> </v-layout> <v-divider></v-divider> <v-layout row wrap> <v-flex xs12> <v-card-text>You can change your decision later on.</v-card-text> </v-flex> </v-layout> <v-layout row wrap> <v-flex ..

Read more

I’ve built an application Quasar using the composition API and I’m using import { createPersistedState } from ‘vuex-electron’; in order to maintain certain properties from session to session. However in my case there is a property called ‘Search‘ which is a string, that i do not want to save. How can I ignore that value? ..

Read more

I’m new to js and vue and I encountered problem. I’ve got v-select component (from vuetify) defined like this: <v-select label="Department" v-model="this.department" :items="this.factoryElements" item-text="name" return-object single-line @change="test" ></v-select> this.factoryElements – array of elements from store (referenced by getter from vuex) this.department – has it’s value assigned to null @change="test" – logs this.department to console I ..

Read more