How does vue get the data on the first page?

Why do I write this way to get all the data

Mar.16,2021

  1. if you use element-ui, see his paging usage.
  2. this kind of paging requires the cooperation of the backend. For example, when a request is made, {page:1,pageSize:20} is sent in params by default. If the request succeeds, the backend returns the first page with 20 pieces of data.
  3. looks something like this:

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37277-2b7ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37277-2b7ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?