From abcf89c0931fc453f4fd8e1d4d48b8b469d0f3c7 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Tue, 07 May 2024 10:19:31 +0800
Subject: [PATCH] xxx
---
src/views/account/settings/Security.vue | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/views/account/settings/Security.vue b/src/views/account/settings/Security.vue
index e753da9..ae1dc05 100644
--- a/src/views/account/settings/Security.vue
+++ b/src/views/account/settings/Security.vue
@@ -43,9 +43,9 @@
export default {
mixins: [baseMixin],
components: {
- AvatarModal,
+ AvatarModal
},
- data() {
+ data () {
return {
// cropper
preview: {},
@@ -62,30 +62,30 @@
fixedBox: true,
// 开启宽度和高度比例
fixed: true,
- fixedNumber: [1, 1],
+ fixedNumber: [1, 1]
},
settingdetail: {},
addUserform: this.$form.createForm(this),
- fields: ['id', 'adminPwd', 'adminName'],
+ fields: ['id', 'adminPwd', 'adminName']
}
},
- mounted() {
+ mounted () {
this.getnowuser()
},
methods: {
- getnowuser() {
+ getnowuser () {
adminlist().then((res) => {
var index = res.data.list.findIndex((item) => item.adminPhone == window.localStorage.getItem('phones'))
this.addUserform.setFieldsValue({
id: res.data.list[index].id,
- adminName: res.data.list[index].adminName,
+ adminName: res.data.list[index].adminName
})
})
},
- setavatar(url) {
+ setavatar (url) {
this.option.img = url
},
- saveinfo() {
+ saveinfo () {
const form = this.$refs.addUserform.form
form.validateFields((errors, values) => {
if (!errors) {
@@ -100,8 +100,8 @@
})
}
})
- },
- },
+ }
+ }
}
</script>
--
Gitblit v1.9.3