if the question passes import store from @ store store.js ...
problem description when you use Nuxt.js to develop a server-side rendering project, refreshing the web page will cause data saved to vuex store to be lost. if it is token , then I will save it to cookie , get token in cookie when nuxtServe...
report navIdx is not defined s error in this way ...
create a project by yourself. When the page is loaded, you will get the login information through the API, and then save it in vuex. The code is as follows: util.request.post({ url: "combination pagehead", that: this, success: result =&...
computed: { perssionObj() { return this.$store.state.permission }, } perssionObj can get a value in template, but what you get in methods is undefined. What s going on with this? ...
after the following settings, you can connect to the local server import store from . store import VueSocketio from vue-socket.io ; import socketio from socket.io-client ; Vue.use(VueSocketio, socketio( http: 127.0.0.1:7777 ),store); the...
problem description IE11 reports the following error: [vuex] vuex requires a Promise polyfill in this browser. the environmental background of the problems and what methods you have tried developers have not found any problems under chrome. Tod...
the data in store is not involved in the operation of the page, so why is it affected? Why are the two items printed in updated always equal? using chrome s vue plug-in, you can clearly see in the vuex interface that after triggering printing in upda...
Let s talk about my business scenario first. I now have two pages An and B, and the A page has two sub-components A1 and a2. A specific component is displayed through the isComponent of vuex . The code for A.vue is as follows: <template> &...
problems with store data access in vuex add the shipping address, which is stored in store, and return to the current page after adding it. Why does the data automatically read the information in the shipping address and need to refresh it? 1. ...
the code is as follows: import headerVue from ". components header.vue"; import bodyVue from ". components body.vue"; import footerVue from ". components footer.vue"; import connector from ". components connector.js&q...
Why did you report an error? Solve. Thank you console.log(this.$socket) ...
problem description the environmental background of the problems and what methods you have tried related codes Please paste the code text below (do not replace the code with pictures) what result do you expect? What is the error message actu...
box.vue js called in the above way, the modal box pops up after the call, and the OK button in the modal box is clicked to transfer the data in the modal box to the current component, but keep reporting commit not defined using vuex commit. s...
state.js state:{ data:{} } mutation.js type.data (state, arg) { return state.data = arg } action.js commit(types.data, {a: 111, b: 222}) getters.js export const data = (state) => { return state.data } is called in the methods method o...
The following tree directory is used in the project, each using the same route at the same level, and rendering different pages according to the routing parameters. in the tree directory, clicking on each node will commit the current node informatio...
recently encountered a very frustrating situation on the development platform. to put it simply, logical code can be changed in some places and suddenly not in some places state data similar to credit card users are stored as Array < Object > mu...
after jumping to the order page, click to return to the current page, but can not keep the item selected, how to solve? <template> <div> <ul> <li class="bookItem" v-for="item in bookList...
multiple definitions of an attribute are not allowed in the output SCRIPT1046: strict mode in the ie console. related dependencies: "dependencies": { "axios": "^0.18.0", "qs": "^6.5.2", &...
store. MapState using vuex is not defined; is scaffolding built with vue-cli. Babel plugins all have what is the problem ...mapstate ...
problem description the interface under pages, click < nuxt-link > in the list to jump to the detail interface. The asyncData of the detail interface cannot execute server code the environmental background of the problems and what methods you have t...
installed android stdio, and created AVD, to start, everything went well, but there was no net in Android virtual machine, WiFi showed connected, no internet: all the configurations of the network have not changed. Then I just want to ask: norma...
established the OData API of the corresponding single entity want to associate multiple tables follow the official tutorial http: host service $crossjoin(Products,Sales)?$filter=Products ID eq Sales ProductID write url to visit, and you get 404 ...
question: one English word is known. The English word contains only the uppercase letters "Amurz " and the lowercase letters "Amurz ". Your task is to translate English words into cipher text. The rule of translation is to replace all letters with th...
self.s = requests.session () -sharp -sharp proxyHost = "http-dyn.abuyun.com" proxyPort = "9020" -sharp proxyUser = "HH30H1A522679P8D" proxyPass = "74EF13F061719736" proxyMeta = "http: %(user)s:%(pas...