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/careerSelect.vue | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/PAMapp/components/careerSelect.vue b/PAMapp/components/careerSelect.vue index 3a0f848..30bf3d1 100644 --- a/PAMapp/components/careerSelect.vue +++ b/PAMapp/components/careerSelect.vue @@ -41,7 +41,6 @@ <script lang="ts"> import { Component , PropSync , Vue} from "vue-property-decorator"; - import * as _ from 'lodash'; @Component export default class CareerSelect extends Vue { @@ -83,7 +82,7 @@ patchInitValue(): void{ if(this.syncCareerSelect){ - if(_.includes(['憭','��'],this.syncCareerSelect)){ + if (['憭','��'].includes(this.syncCareerSelect)) { this.career = this.syncCareerSelect; }else{ this.career = '�隞�'; @@ -95,8 +94,8 @@ patchCareer(): void { this.showJobDrawer = false; this.syncCareerSelect = this.career === '�隞�' - ? _.cloneDeep(this.career_Other) - : _.cloneDeep(this.career); + ? JSON.parse(JSON.stringify(this.career_Other)) + : JSON.parse(JSON.stringify(this.career)); } get isCareerValid(): boolean { -- Gitblit v1.8.0