Should the front end deal with data?

problem description

in the process of development, the front end uses the Vue framework, which requires that the data returned by the interface meets the use of Vue, and then you can assign values.
includes some styles, Chinese character descriptions and so on. The server code needs to be changed when the style changes.

the environmental background of the problems and what methods you have tried

the front end doesn"t seem to have a simple algorithm, such as loop traversal, recursion, and so on, and the js function is not familiar with it.

related codes

what result do you expect? What is the error message actually seen?

it is not clear that this is the way to go now, is it, the interface directly returns the processed data? If the interface has a lot of access, isn"t it a waste of bandwidth and server resources? Even if the quantity is small, is this not standard?
confused.

Feb.09,2022

this is suitable for scene-by-scene processing. Some simple data processing sometimes involves security issues have to be handed over to the background processing, the front end to do data processing is not only can not be done, but also to consider security issues. In general, it is possible to use data processing to show the effect of animation on the page, but when the data processing involves security issues, it is more appropriate to verify and calculate it through the background.

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-1b3ea00-2c413.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-1b3ea00-2c413.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?