From 0632b21db7576e4a223eb4f6ca09b650616222f2 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期三, 17 一月 2024 09:54:09 +0800
Subject: [PATCH] Fixed: 移除 lodash, @type/lodash 導致的 side-effect

---
 PAMapp/components/editConsultantAvatar.vue |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/PAMapp/components/editConsultantAvatar.vue b/PAMapp/components/editConsultantAvatar.vue
index 0b3832c..d36439d 100644
--- a/PAMapp/components/editConsultantAvatar.vue
+++ b/PAMapp/components/editConsultantAvatar.vue
@@ -38,7 +38,6 @@
 
   import { MessageBox } from 'element-ui';
   import { MessageBoxData } from 'element-ui/types/message-box';
-  import _ from 'lodash';
 
   import myConsultantService from '~/shared/services/my-consultant.service';
 
@@ -74,7 +73,7 @@
     }
 
     handleAvatarUploaded(file:any): void {
-      const isFollowUploadRule =_.includes(file.raw.type,'image/');
+      const isFollowUploadRule = file.raw.type.includes('image/');
       isFollowUploadRule ? this.getImgSrc(file) : this.showFileUploadErrorMsg()
     }
 
@@ -96,7 +95,7 @@
     }
 
     private splitBase64WithCommon(base64: string): void {
-      const splitBase64= _.split(base64, ','); // �鈭�� data:image , base64 閫������;
+      const splitBase64 = base64.split(','); // �鈭�� data:image , base64 閫������;
       this.syncPhotoBase64 = splitBase64[1];
       // NOTE: �����誑 agentNO ���� avatar ��仃����
       // ����迨��靘蝭���*蝷�'������'���瘜�� [Tomas, 2022/1/3]

--
Gitblit v1.8.0