先注释掉未实际使用功能,后续优化密码修改内容

This commit is contained in:
chc
2025-12-01 18:55:46 +08:00
parent e5d98d022e
commit c5fecda212

View File

@@ -20,7 +20,7 @@
</template> </template>
<script> <script>
import { getPwdStatus } from '@/api/account'; // import { getPwdStatus } from '@/api/account';
export default { export default {
name: 'AccountSafe', name: 'AccountSafe',
data () { data () {
@@ -40,15 +40,15 @@ export default {
this.$router.push({name: 'ModifyPwd', query: { status: 1 }}) this.$router.push({name: 'ModifyPwd', query: { status: 1 }})
}, },
// 获取密码状态 // 获取密码状态
getPwdStatus () { // getPwdStatus () {
getPwdStatus().then(res => { // getPwdStatus().then(res => {
if (res) { // if (res) {
this.pwdStatus = '修改密码' // this.pwdStatus = '修改密码'
} else { // } else {
this.pwdStatus = '设置密码' // this.pwdStatus = '设置密码'
} // }
}); // });
} // }
} }
} }
</script> </script>