three different messages need to be displayed in the subcomponents <div v-if="one"><span>< span>< div> <div v-if="two"><span>< span>< div> <div v-if="three"><span>...
for example, after the phone is bound, the status of the page should be updated. What is the specific method? ...
problem description I currently have a parent component, which has more than 20 child components A1, a2, and so on, and I want them to update their balances. What s the best way to deal with it. the environmental background of the problems and what...
problem description does vue+cli have a mobile music player plug-in or component? as long as it has the necessary functions, and the interface does not need to be beautiful (rookie, ask for advice ~) (Note: it is a music player, not a video playe...
learn the action section of vuex: ...
A todoList small demo, data is made based on vue.js and vuex to be stored in vuex. listlocalstoragevuejswatch mutation: : this feels so bulky and troublesome, and the essential requirement is to "monitor " changes in list and do a unified treat...
mapActions using vuex storeaction const actions = { setLoginInfo ({ commit }, data) { localStorage.setItem( loginStatus , true) commit( SET_LOGIN_STATUS , true) }, setGwShopUserToken ({ commit }, token) { localStorage.setItem( ...
I just added a common component alert when I reported such an error. I don t know what it means. : alert component: <template> <div class="alert"> <div class="alert-warp"> <div cla...
I put all the data requested by the API in the vuex, which is normal all the time, but the data becomes empty when I refresh the page manually. Although the vuex is emptied every time I refresh the page, my API request operation and putting the requested...
I have just been in contact with vue for a week, and my understanding of vuex is a little vague. Here is the vuex moudles com.js I used in the project. Can I write it this way? Is there anything wrong in understanding? import * as types from .....
needs to do a real-time update for example, after the current user chooses to hang orders, update the number of orders in the header from time to time implement with vuex and localStorage Code: store call describe the problem: the first...
I would like to ask how this drop-down selection shows that the default value is the taskBodyName corresponding to the taskBodyId passed in the background (this code can achieve what I want to know) project is written separately from the front and back...
go straight to the code: const tree = { state: { allNode: [], treeNode: null }, mutations: { SET_ALL_NODE: (state, keys) => { state.allNode = [...keys]; }, SET_TREE_NODE: (state, nodes) => { state.treeNod...
https: cn.vuejs.org v2 guide. to solve this problem, we adopt a simple store pattern: var store = { debug: true, state: { message: Hello! }, setMessageAction (newValue) { if (this.debug) console.log( setMessageAction triggered wi...
newcomers are just beginning to learn vue + webpack, to build their own step by step. After running the page, the compilation did not report an error, and the page did not report an error. It seems that the vue instance has been created successfully. Th...
https: www.npmjs.com package. there is an introduction to Dynamic Modals in the documentation of this package :(vue-cli3.0) ,dynamic? ...
does this passage in the Vuex document not quite understand? A store.dispatch can trigger multiple action functions in different modules. In this case, the returned Promise executes only after all triggering functions are completed. Original https: ...
<script> export default { name: "index", data() { return { products: this.$store.state.app.products } }, mounted() { if (this.products.length <= 0)...
how do I declare a global variable in a project generated by vue-cli? My personal understanding is that main.js is an entry file and App.vue is a root-level component. If a variable is declared here, webpack will be packaged recursively. But why can t t...
two methods-sharp-sharp-sharp problem description Why can t the first of the following be obtained with mapgetters the environmental background of the problems and what methods you have tried related codes Please paste the code text below (d...
after selecting a time, without clicking OK (click blank or click cancel), the new time values are generated into the pickerValue. How can I just click OK to generate a new time, click blank or cancel or the original time? Thank you! ...
problem description the environmental background of the problems and what methods you have tried left slide shows delete, click to do the operation, but click delete has always been the editing method, confused related codes Please paste the...
How to write the path of url? I keep reporting 404 . ...
problem description Why the ID (student_id) of students who fail in my score table (num < 60) cannot use having select student_id from score having num < 60; can only use select student_id from score where num < 60 ; the environmental background ...
the folder where my class is located is named user-register,. This folder contains a -, and then I report an error when I use the class under this folder in other php files, as shown in the following figure, the Laravel framework I use: if you real...