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 I created the project with webpack-vue scaffolding, and after the development is complete, I need to adapt to multiple platforms, so I use electron-packager to package again. After packaging, I open the application. The js and css ...
problem description the custom video control bar has full-screen buttons, and the full-screen event has been written, but after entering the full-screen control bar, the event at the bottom of the control bar is invalid, and the click is invalid, whic...
use the post method of axios to submit data, and all the data received by the backend are transcoded by ASCII , resulting in data verification failure. frontend request: : : networkjsonjsonJSON.stringify ...
There is an one-to-one relationship between the data elements in the linear structure, but there are two pointers stored in the nodes of the two-way linked list, pointing to the address of the previous node and the address of the latter node, respective...
< H2 > for example, if I send a video result in here, I want to call the backend interface through the ajax method again to generate its thumbnail. How can I pass video as a parameter to the pug template used by ajax,? thank you < H2 > ...