This commit is contained in:
2023-06-01 09:34:14 +08:00
parent 6d2dfe4112
commit 0d008a0689
9 changed files with 29 additions and 13 deletions

View File

@@ -15,8 +15,8 @@
<div class="state-item">运行</div>
<div class="state-line"></div>
<div class="state-item">自动</div>
<div class="state-line"></div>
<div class="state-item">中文&nbsp;<i class="icon_dropdown"></i></div>
<!-- <div class="state-line"></div> -->
<!-- <div class="state-item">中文&nbsp;<i class="icon_dropdown"></i></div> -->
</div>
</div>
<div class="header_user_wraper">
@@ -94,6 +94,7 @@
import jxTime from '@components/time.vue'
import jxDialog from '@components/dialog.vue'
import { updatePass } from '@config/getData2.js'
import {encrypt} from '../../../main.js'
export default {
components: {
jxTime,
@@ -282,7 +283,7 @@ export default {
return
}
try {
let res = await updatePass(this.newpassword1, this.oldpassword)
let res = await updatePass(encrypt(this.newpassword1), encrypt(this.oldpassword))
this.toast(res.desc)
this.$refs.child.active = false
this.$refs.child.disabled = false