Объединил функции в один метод

This commit is contained in:
megavrilinvv
2023-08-15 15:29:05 +03:00
parent 9a6777c16e
commit ea2076f70e

View File

@@ -24,7 +24,7 @@
label="Медкарта", label="Медкарта",
:style="{'font-weight': 500}" :style="{'font-weight': 500}"
size="14px", size="14px",
@click="getMedicalCardData(memberData?.id), $router.push('medical-card')" @click="openMedicalCard(memberData.id)"
) )
q-icon.arrow.ml-1(name="app:long-arrow", size="20px") q-icon.arrow.ml-1(name="app:long-arrow", size="20px")
.flex.gap-x-1.flex-1.h-full(v-if="field?.title === 'Услуги'") .flex.gap-x-1.flex-1.h-full(v-if="field?.title === 'Услуги'")
@@ -123,6 +123,10 @@ export default {
// }, // },
}, },
methods: { methods: {
openMedicalCard(id) {
this.getMedicalCardData(id);
this.$router.push("medical-card");
},
hidePreview() { hidePreview() {
this.internalPreview = false; this.internalPreview = false;
}, },