From f065760fa7df1f88747395ab4b55349ce8b2faf0 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期一, 25 十二月 2023 13:35:43 +0800
Subject: [PATCH] Update#178944: 移除 lodash 套件

---
 PAMapp/pages/accountSetting/index.vue |   49 ++++++++++++++++++++++++-------------------------
 1 files changed, 24 insertions(+), 25 deletions(-)

diff --git a/PAMapp/pages/accountSetting/index.vue b/PAMapp/pages/accountSetting/index.vue
index bf3a713..ded0832 100644
--- a/PAMapp/pages/accountSetting/index.vue
+++ b/PAMapp/pages/accountSetting/index.vue
@@ -164,8 +164,6 @@
 import { Vue,Component } from 'vue-property-decorator'
 import { namespace } from 'vuex-class';
 
-import _ from 'lodash';
-
 import accountSettingService from '~/shared/services/account-setting.service';
 import { UserSetting } from '~/shared/models/account.model';
 
@@ -202,28 +200,29 @@
 
 ////////////////////////////////////////////////////////////
   mounted(){
-            accountSettingService.getUserAccountSetting().then((userInfo: UserSetting)=>{
-                this.defaultUserSetting = _.cloneDeep({
-                    name : userInfo.name || '',
-                    phone: userInfo.phone || '',
-                    email: userInfo.email || '',
-                });
-                this.phoneValue    = this.defaultUserSetting.phone!;
-                this.userNameValue = this.defaultUserSetting.name!;
-                this.emailValue    = this.defaultUserSetting.email!;
-            })
-        }
+    accountSettingService.getUserAccountSetting().then((userInfo: UserSetting)=>{
+      this.defaultUserSetting = {
+        name : userInfo.name || '',
+        phone: userInfo.phone || '',
+        email: userInfo.email || '',
+      };
+      this.phoneValue    = this.defaultUserSetting.phone!;
+      this.userNameValue = this.defaultUserSetting.name!;
+      this.emailValue    = this.defaultUserSetting.email!;
+    })
+  }
 ////////////////////////////////////////////////////////////
 
   editField(fieldName: string): void {
-            const enablePromise = new Promise((resolve, reject) => { // 甇斤promise隤��
-                resolve((this as any)[`${fieldName}Disabled`] = false);
-            });
-            const targetInput = this.$refs[fieldName] as any;
-            enablePromise.then((_) => {
-                targetInput.focus();
-            });
-        }
+      const enablePromise = new Promise((resolve, reject) => { // 甇斤promise隤��
+          resolve((this as any)[`${fieldName}Disabled`] = false);
+      });
+      const targetInput = this.$refs[fieldName] as any;
+      enablePromise.then((_) => {
+          targetInput.focus();
+      });
+  }
+
   updateAccountSetting(): void {
       const editSettingInfo: UserSetting = {
           name: this.userNameValue,
@@ -238,10 +237,10 @@
   }
 
   private resetSettingForm(): void {
-            this.userNameDisabled = true;
-            this.userPhoneDisabled = true;
-            this.userEmailDisabled = true ;
-        }
+      this.userNameDisabled = true;
+      this.userPhoneDisabled = true;
+      this.userEmailDisabled = true ;
+  }
 
   editOtherContactType(){
     this.otherContactType = true;

--
Gitblit v1.8.0