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/singleSelectBtn.vue | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/PAMapp/components/singleSelectBtn.vue b/PAMapp/components/singleSelectBtn.vue index b7a4a55..8fbcd3b 100644 --- a/PAMapp/components/singleSelectBtn.vue +++ b/PAMapp/components/singleSelectBtn.vue @@ -21,7 +21,6 @@ <script lang="ts"> import { Component, Prop, PropSync, Vue } from "nuxt-property-decorator"; import { OptionBtnDto } from "~/shared/models/optionBtnDto.model"; - import * as _ from 'lodash'; @Component export default class SingleSelectBtn extends Vue { @@ -35,7 +34,7 @@ ////////////////////////////////////////////////////////////////////// patchValue(value: string | number): void { // 銝餉�圾瘙箸����甈∟��嚗暺������ - this.syncSingleSelected = _.isEqual(this.syncSingleSelected, value) ? "" : value; + this.syncSingleSelected = this.syncSingleSelected === value ? "" : value; } } </script> -- Gitblit v1.8.0