feat:登录功能迁移新登录页面
This commit is contained in:
parent
714de2f19b
commit
7df60c4ea4
@ -458,9 +458,9 @@ const goToLoginPage = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 显示登录模态框(保留以备后续需要)
|
// 显示登录模态框(保留以备后续需要)
|
||||||
const showLoginModal = () => {
|
// const showLoginModal = () => {
|
||||||
loginModalVisible.value = true
|
// loginModalVisible.value = true
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 显示注册模态框(已移除注册功能,保留函数以防后续需要)
|
// 显示注册模态框(已移除注册功能,保留函数以防后续需要)
|
||||||
// const showRegisterModal = () => {
|
// const showRegisterModal = () => {
|
||||||
|
@ -230,7 +230,7 @@ const handleSubmit = async () => {
|
|||||||
|
|
||||||
if (response.code === 200 || response.code === 0) {
|
if (response.code === 200 || response.code === 0) {
|
||||||
// 先保存token
|
// 先保存token
|
||||||
const token = response.data?.token || response.result?.token
|
const token = response.data?.token
|
||||||
if (token) {
|
if (token) {
|
||||||
userStore.token = token
|
userStore.token = token
|
||||||
localStorage.setItem('X-Access-Token', token)
|
localStorage.setItem('X-Access-Token', token)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user