want to call an API across domains. According to the official document, the configuration in nuxt.config.js is as follows: function shouldProxy (context, req) { var path = (req.originalUrl || req.url) console.log( shouldProxy path: , conte...
image: images icon-bigger.png is used in nuxt projects, but I don t understand what this path means and the in it. I hope God can give me some advice ....
import axios from axios import store from .. store index export function netlink (config) { return new Promise ((resolve,reject) = > { axios const instance = axios.create({ headers:{ Content-Type : application ...
request the backend address in nuxt, for example, I want to send post data to the server (the server out of the interface is a separate project) in the local development environment, I want to send it to localhost:5000 (the project of nuxt is localhos...
I set autofocus on input, but it s only the first time I go in like this. I can also achieve input to get the focus state after clicking the button. Could you tell me how to write the grammar of nuxt? My click event is written in the methods hook functi...
npm err! Code ELIFECYCLE npm err! Errno 3221225725 npm err! Kr-vue@1.0.0 dev: cross-env NODE_ENV=development node server index.js npm err! Exit status 3221225725 npm err! npm err! Failed at the kr-vue@1.0.0 dev script. npm err! This is probably ...
using the nuxt framework, there are two pages An and B A page jumps to b page and transmits product information to B page via url The B page can get the information and copy it to the goodsList in data, but the page cannot render the page according ...
I share two search options bars on all pages, but I want to save my last search record. How should I cache it? ...
how does packaging generate relative paths? manually change the relative path to report an error? ...
src api index.js how to get the router object in index.js? Put it in middleware and feel that every time you switch pages, you follow the code of api. Something is wrong. Should it be realized? ...
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! kang_cheng@1.0.0 dev: `backpack dev` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the kang_cheng@1.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logg...
as shown in the figure, each time a page is refreshed, the js in the project is loaded. Reach 24MB. Checked the official website and found nothing. ...
there is a static.js in the project that stores the static variables in the project I think this file should be placed in the static folder, and import introduces when using it. colleagues feel that static files are used as dictionary plug-ins in th...
At which step was converted to the Array type. How to stop it? ...
the company recently used nuxt framework for development, and now the redevelopment process has encountered cross-domain problems. In the past, vue projects only need to simply set up proxy to realize cross-domain requests to solve cross-domain problems ...
1. All the links requested using axios, are timed out, but refresh the page and you can do it again ...
now it looks like this: : read the document but did not find how to solve this problem, ask for help. ...
the project uses token to authenticate users. I wrote in NuxtServerInit that the token stored in the Session of Node is written to Store, that is, after the user logs in, there are three places to store Session, Store and local localStorage, in the toke...
what is the difference between the nuxt that comes with NUXT and the koa of nuxt-koa? is there any difference in server rendering? ...
< H2 > prompt when nuxt express backend npm run dev: < H2 > No parser and no filepath given, using babylon the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred. without promp...
react uses for conditional rendering. { this.state.show ? <View > : null } the content is rendered only when the condition is triggered, otherwise it is not rendered and is not controlled by display:none . at a time like this, how do you ...
s = f"""{fsdfsdfsdfsdfsdf{2}dsfsdfsdffsf}""" error SyntaxError: invalid syntax < H2 > what should I do with {} nested in fstring? < H2 > ...
what should I do to solve the problem? it was all good before. It s been like this since I built a new project . ...
Development environment: MAC OS, APACHE, PHP7.2, ThinkPHP5, vue.js 3.0, axios. the back-end interface is developed by ThinkPHP5, and cross-domain headers have been added to return the data. Deployed on the local IP:192.168.0.3:80. the data returned b...
springboot multi-module project, in which web project is packaged into jar to run, web project relies on tool module xx.jar xx.jar to read data files through ClassLoader.getSystemResourceAsStream ( "xx.txt "), running tool module alone can run but web ...