存储token

This commit is contained in:
yannqing 2024-01-20 02:27:32 +08:00
parent 7f5fc1de4f
commit 23177f70af

View File

@ -84,6 +84,7 @@ requests.login(data).then((res) => {
if (res.data.code === 200) {
//++
//manager
window.localStorage.setItem('token',res.data.data.token)
if (res.data.data.role.rid===1) {
router.push("/manager")