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/pages/myAppointmentList.vue | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/PAMapp/pages/myAppointmentList.vue b/PAMapp/pages/myAppointmentList.vue index 646cede..aa776da 100644 --- a/PAMapp/pages/myAppointmentList.vue +++ b/PAMapp/pages/myAppointmentList.vue @@ -64,8 +64,6 @@ <script lang="ts"> import { Vue, Component, Watch, namespace } from 'nuxt-property-decorator'; -import * as _ from 'lodash'; - import appointmentService from '~/shared/services/appointment.service'; import { Appointment } from '~/shared/models/appointment.model'; import { ContactStatus } from '~/shared/models/enum/contact-status'; @@ -183,8 +181,8 @@ // format to {page}-banner or pam-no-banner tag private routeFormatBannerClass(route: string): string { - const needBannerTags = ['myAppointmentList-appointmentList', 'myAppointmentList-closedList']; - return _.includes(needBannerTags, route) ? route + '-banner' : 'pam-no-banner'; + const needBannerTags = ['myAppointmentList-appointmentList', 'myAppointmentList-closedList']; + return needBannerTags.includes(route) ? route + '-banner' : 'pam-no-banner'; }; } </script> -- Gitblit v1.8.0