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...
I encountered a problem at the beginning of learning react,. Ask to set the class error of the current display route . import React,{ Component } from "react"; import router1 from . router1 ; import router2 from . router2 ; import route...
I would like to ask you bosses about the problems in the direction of learning how to learn Node has always been my doubt. The blogs and tutorials I read on the Internet are all about learning several core modules of Nodejs (fs,path,event,buffer,http)...
problem description the goal requirement is: the customer enters the text, and then he can choose different art fonts [not commonly used fonts], and the effect can be previewed online. the environmental background of the problems and what methods yo...
Hello, everyone! My younger brother is currently working on a host monitoring system, which needs communication function. requirements are as follows: console establishes communication with multiple hosts; detects whether a host is online in real ti...
the final requirement is similar to this this is changed with element ui using the checkbox button tree menu without using the shuttle box link description ...