Explorar o código

默认账号密码

Xiao_123 hai 8 meses
pai
achega
02b454460a

+ 2 - 1
src/layout/personal/navBar.vue

@@ -243,7 +243,8 @@ const handleToPersonalCenter = () => {
 // 退出登录
 const handleLogout = async () => {
   await userStore.userLogout(1)
-  router.push({ path: '/recruitHome' })
+  if (route.path === '/recruitHome') location.reload()
+  else router.push({ path: '/recruitHome' })
 }
 
 const items = ref([

+ 1 - 1
src/views/login/components/passwordPage.vue

@@ -73,7 +73,7 @@ const loginData = reactive({
 // 设置默认账号密码便于开发快捷登录
 if (window.location.hostname === 'localhost' || window.location.hostname === '192.168.3.152') {
   loginData.phone = '13229740092'
-  loginData.password = 'Citu123'
+  loginData.password = 'Citu123456'
 }
 
 const passwordForm = ref()