增加字段-解开密码校验

This commit is contained in:
bb_pan 2025-07-08 15:50:20 +08:00
parent 20211afe0a
commit 87a3ada02a
3 changed files with 8 additions and 5 deletions

View File

@ -115,7 +115,7 @@ const user = {
getInfo().then(async res => {
const href = window.location.href
if (!href.includes('resetPassword') && JSON.parse(localStorage.getItem('isReset'))) {
// await checkPasswordStatus()
await checkPasswordStatus()
}
const user = res.user

View File

@ -114,9 +114,6 @@
prop="lotName"
show-overflow-tooltip
>
<template slot-scope="scope">
<span>{{ lotName }}</span>
</template>
</el-table-column>
<el-table-column
label="类型名称"
@ -171,6 +168,12 @@
prop="typeCode"
:show-overflow-tooltip="true"
/>
<el-table-column
label="工程在用量"
align="center"
prop="usNum"
show-overflow-tooltip
/>
<el-table-column
label="申请数量"
align="center"

View File

@ -527,7 +527,7 @@ export default {
const password = encrypt(this.loginForm.password)
localStorage.setItem('username', username)
localStorage.setItem('pw', password)
// const res = await checkPasswordStatus()
const res = await checkPasswordStatus()
// console.log('🚀 ~ .then ~ res:', res)
this.$router.push({ path: '/' }).catch(() => {})
})