-
Where does the code in nuxt.js that does not need to be executed on the server be executed?
I want to load the data on the first screen on the server, that is, there is still part of the return data, hidden in asyncData, and I want to render it on the client. How do I write this? ...
-
Is there a problem with the configuration item css in Nuxt.config.js?
for the first time
it s all wrong anyway. I followed nuxt.js s official tutorial--
...
-
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, ...
-
Does nuxt use keep-alive, to empty data in data every time you switch pages?
each time nuxt uses keep-alive, to switch pages, it will empty the data in data, which is inconsistent with the performance of keep-alive in normal vue-cli-built projects.
for example, the asynchronously acquired data I loaded in list is switched to i...
-
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) ...
-
How to display Chinese in elementUI date Selector
after I install it using the documentation s npm installation method, I introduce a date selector as in the case, but the time is in English
elementUI
how to change this
...
-
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...
-
Nuxt.js builds and installs the dependencies through vue-cli, and runs npm run dev to report an error.
D: code nuxtjsdemo node_modules nuxt lib core middleware nuxt.js:72
const policies = this.options.render.csp.policies ? {...this.options.rende
r.csp.policies} : null
SyntaxError: Unexpected token ...
platform environment nodejs 8.2.0 v...
-
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 ...
-
The project built by nuxt.js did not report an error when it started, but it did not start successfully.
report this error with pm2 logs main startup, but netstat-anp | grep port 80 is not occupied
...
-
Nuxt.js uses less-loader to load less styles and finds out why variables cannot be loaded.
my global variable configuration vue
:@base-color-red
less@
...
-
How does nuxt asyncData generate static files after generate?
I use nuxt to do a project that separates the front and rear ends, and uses docker to build the project independently. When the server needs generate to generate static files to access, and asyncData obtains the initial data, the data obtained by my loca...
-
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.
...
-
Problems with nuxt upgrading vue version
because vue version 2.5 or above is required to use element-ui, this error is reported after updating the vue, refresh page separately. I really don t understand.
links on the diagram
...
-
How to use the less public variable in nuxt
if you want to define a global less variable and then use it, how do you configure it ...
-
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 server deployment package error
npm run build reports error, error content is as follows,
after checking, I found that the original nuxt project can run nuxt start and nuxt build normally, so I also have the problem of adding plug-ins nuxtproxy and nuxtaxios. But because local d...