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 ...
$model = new Test(); $model->uuid = new Expression( UUID() ); $model->create = new Expression( NOW() ); if($model->save() === false) { echo(json_encode($model->getErrors()));exit; } else echo( saved ); the output is shown as:...
1. The foundation is very poor, want to find a string of code, or analysis tools to help you understand. as follows: var str = i,am,cool,i,love,wz ; String.prototype.mySplit = function(sqrt){ var result = []; var a =...
Dialog, should be written in each component, and a component should be written for each function addition, editing, etc. Can you reuse a Dialog pop-up box for all components? ...
problem description vue2 + webpack3 production environment packaging, in ubantu16 environment packaging, password input box into plaintext input; windows packaging is normal. I lost my type= "password " by force this is the result of packaging in...
server { listen 80; server_name www.edijin.net; access_log data wwwlogs youdomain.com_nginx.log combined; index index.html index.htm index.php index.jsp; root usr local apache-tomcat-7.0.82 webapps ROOT; location { try_files $uri @pr...