Home > front end >  Vue request interface, slowly to render a page after get the data?
Vue request interface, slowly to render a page after get the data?

Time:12-26

I use vue debug back-end interface, interface status code returned soon, almost is less than 1 second, the data is in the console can print directly to the, but the interface response is waiting for a long time to have the data, by rights I can print to the data after the status code returned, rendering the page, but you can't wait to long time after the response has data to render a page, the data quantity is not big, paging operation, a page to load 20 data, optimization methods have no great god have?

I said baidu to a blog is the front question:

CodePudding user response:

Data is returned, the estimate is for data processing of code you write there is a problem, this depends on your specific code analysis

CodePudding user response:

reference 1st floor JiexC0la response:
data is returned, estimate is for data processing of code you write there is a problem, this depends on your specific code analysis

Is the direct assignment rendering, is such, nothing

CodePudding user response:

refer to the second floor of the @ Grapefruit reply:
Quote: refer to 1st floor JiexC0la response:
data is returned, estimate is for data processing of code you write there is a problem, this depends on your specific code analysis

Is rendering, direct assignment is such, no processing
uh huh, don't look at the code it is difficult to locate
  •  Tags:  
  • Ajax
  • Related