Browse Source

注释掉token

lihuilin/feature-20250718094329-25周年庆后台
wangxiangwen4 4 weeks ago
parent
commit
910acd2421
  1. 4
      activitylink/src/views/homePage.vue
  2. 5
      activitylink/src/views/zhongchou/index.vue

4
activitylink/src/views/homePage.vue

@ -39,11 +39,11 @@ const loginHandler = async () => {
password: password.value
})
// router.push('/zhongchou/mainimg')
console.log(response)
// console.log(response)
if (response.code == 200 ) {
const token = response.data.token
console.log(token)
// console.log(token)
localStorage.setItem('token', token)
ElMessage.success('登录成功,欢迎您使用本系统')
router.push('/zhongchou/mainimg')

5
activitylink/src/views/zhongchou/index.vue

@ -95,7 +95,10 @@ const handleClose = (key, keyPath) => {
<el-icon><User /></el-icon>
<span>管理员管理</span>
</el-menu-item>
<!-- <el-menu-item index="/zhongchou/logout" @click="handleLogout">
<el-icon><Setting /></el-icon>
<span>退出登录</span>
</el-menu-item> -->
</el-menu>
</el-aside>

Loading…
Cancel
Save