Added try...catch and linted

This commit is contained in:
Matthew Raymer
2023-07-03 19:44:41 +08:00
parent bcc6de6fc0
commit 8d8635a3e6
2 changed files with 25 additions and 19 deletions

View File

@@ -1,14 +1,14 @@
<template>
<div v-bind:class="computedAlertClassNames()">
<button
class="close-button bg-slate-200 w-8 leading-loose rounded-full absolute top-2 right-2"
@click="onClickClose()"
>
<fa icon="xmark"></fa>
</button>
<h4 class="font-bold pr-5">{{ alertTitle }}</h4>
<p>{{ alertMessage }}</p>
</div>
<div v-bind:class="computedAlertClassNames()">
<button
class="close-button bg-slate-200 w-8 leading-loose rounded-full absolute top-2 right-2"
@click="onClickClose()"
>
<fa icon="xmark"></fa>
</button>
<h4 class="font-bold pr-5">{{ alertTitle }}</h4>
<p>{{ alertMessage }}</p>
</div>
</template>
<script lang="ts">
@@ -40,7 +40,6 @@ export default class AlertMessage extends Vue {
"duration-300": true,
};
}
}
</script>