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...
I hope in userLogin : `http: ${ws.url} api login` can introduce url, of ws. How do you write it? var ENV = (function(){ var defaultPage = ; return { pageTitleCustom: , defaultPage: defa...
for example, when calling the Alipay payment link, the H5 mobile page is blocked in the new window of the mobile browser. if (res.code === 1) { window.open(res.data.url) } url is the Alipay payment link to be adjusted. The new window can be opene...
the style of the above figure is as follows: <view style= display:flex;justify-content:space-between;align-items:center; > <view style= display:flex;align-items:center; > viewflex <image>< image> &...
the code is as follows var url = "{-sharp$apiHost-sharp} aw export?brand_ids="+brand_ids; var settings = { "async": true, "crossDomain": true, "url": url, "method": "GET", "head...
1. When you make a request in the system, the Timing you see is the following result. Only 3 requests are concurrent at the same time. from the figure below, the request is suspended. Waiting and Content Download have a total of 134ms, which is very fa...