In vue, to log in, should you submit a user password with axios's post request or submit a form?

which of these two kinds of actual development is better?

if you submit the form, jump directly. If the login fails, you can only jump to the failed page or re-enter this page.

but for axios, you can judge whether to jump to the page based on the returned information, so axios is better

.
Apr.22,2021

vue single page, it is better to use axios, so the front end of judgment control logic can be controlled

in fact, the principle is all the same


ajax and axios are both encapsulated in the family of XMLHttpRequest objects

It is recommended to use axios officially recommended

in

VUE.

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