-
How do you share files for a Vue project built by Nuxt.js?
how do Vue projects built with Nuxt.js share header and footer files? only files with section contents are placed in the page directory. Navigation bars and footers and every time you jump to a new route, navigation doesn t have to be reloaded. Gods, ...
-
The keepAlive, in nuxt is used, but I find that when the page component is switched, the data will be emptied when entering the interface. Is this his bug?
nuxt 1.4
uses keepAlive, in nuxt, but I find that when the page component is switched, the data in data will be reset and emptied when entering the interface . Is this his bug?
if there is a problem with the setting, how can I modify the setting?
...
-
When packing under nuxt, I want to tell whether I am running npm run dev or build or the newly created script command. How can I tell the difference?
the packaged scripts are generated dynamically by nuxt. How to mark a global variable so that your business code can tell which command it is? (for example, the interface domain names of different commands are different) ...
-
I would like to ask nuxt.js vue single file, how to use browser rendering + server rendering
ask nuxt.js s vue single file, how to make some vue scripts to be rendered by browser instead of server. if the pull-up load belongs to browser rendering through ajax, how to express the .vue single file in ssr mode. Please, everyone. I m in a hurry...
-
How to add v-distpicker plug-ins to nuxt
add components with npm install v-distpicker add vendor: to nuxt.config.js [ axios , v vendor: distressed ] how to write in the vue interface, ask the great gods to save ...
-
After Nuxt is packaged with npm run generate, it is generated in the dist folder. Open index.html and find that js is invalid.
I use the npm run dev command, but I use npm run generate to package and generate the dist folder, and open index.html to find that js is all invalid. When I first met vue, I asked for guidance.
...
-
How to configure nuxt.js globally?
I have a configuration file in js format, and I don t want to read the configuration every time I have a request. (what if I configure it in cdn,? (not so good on the server Synchronize in the past) if I am writing a service like golang php c, I will c...
-
The nuxt.js page reported an error and could not find the page?
page: structure:
index.vue
homeindex.vue
:homeindex.vuevue-awesome-swiper:
...
-
About the configuration of nuxt.js?
the project directory automatically generated by nuxt.js no longer has webpack.config.js, so how to configure things such as scss, less, autoprefixer, and url? ...
-
Nuxt.js, how to call the mutation method in store in other js files?
I need the js file in plugins or assets to call the mutation method add . How can I call it correctly?
...
-
How to use asyncData () in Nuxt.js Project how to use this
I want to use this in asyncData () in the Nuxt.js project it is officially said that this cannot be used in asyncData (), but my business requirement is to send a variable managed by vuex to the server when the page is loaded. The data code is as foll...
-
Nuxt reference component failed
this relative module was not found ...
-
How should the configuration of axios in the nuxt.js project be written?
I put the configuration file of axios in plugins axios.js with the following code:
import axios from axios
import qs from qs
const hotName = location.hostname
if (hotName === localhost ) {
axios.defaults.baseURL = ` xxxx.com api`
axios...
-
Write nuxt project under vscode, export is not recognized
.eslintrc.js is configured as follows
description:
The problem with is plugin:vue essential . If you comment it out, vscode will work properly.
npm run dev can run normally and will not report an error of export . Of course, an error ...
-
What is the difference between asyncData in nuxt and data in vue?
No response to interface requests in asyncData
api.jsaxiosstatic:
I put the request in mounted so that I can request it successfully
...
-
What are the routing and permission issues of the vue project page deployed by nuxt?
when users are not logged in, they enter the login page by default, while the login page has a "about us " button. Click to enter the page about us. Click on this.$router.,. Now the problem is to enter the page about us from the login page, refresh and ...
-
How to call the mutations of another module in the action of one module by vuex in nuxt
suppose that two modules an and b are defined in vuex, and how can action in SET_USER,a be called if there is a mutations method in b? I try to directly
store.commit( SET_USER , user);
but the prompt cannot find this mutations,. It seems that the c...
-
Nuxt.js project request cross-domain
in the website built by nuxt.js, a request is sent in the asyncData method on the home page. The interface address is forwarded with nginx. The background log checks the returned data, but the front end does not receive the returned data. The website ca...
-
Use the nuxt official demo to start the error message, how to solve it?
< H1 > the code is as follows < H1 >
package.json
{
"name": "example-hello-world",
"dependencies": {
"nuxt": "latest"
},
"scripts": {
"dev": "nuxt",
&...
-
What is the difference between NUXT BYOD and nuxt-koa?
what is the difference between the nuxt that comes with NUXT and the koa of nuxt-koa?
is there any difference in server rendering?
...