clear errors on successful render

This commit is contained in:
Rich Harris
2018-10-16 15:59:57 -04:00
parent cb45bb0fbe
commit 64e5065aa5
5 changed files with 27 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
<script>
export default {
preload() {
this.error(420, 'Enhance your calm');
}
};
</script>

View File

@@ -0,0 +1,3 @@
<h1>{error ? error.message : 'No error here'}</h1>
<a href="enhance-your-calm">Enhance your calm</a>