Handle error.vue initializeFirebase
This commit is contained in:
parent
02d3b45efc
commit
1fb2c35984
1 changed files with 5 additions and 1 deletions
|
|
@ -22,6 +22,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { initializeFirebase } from "~/helpers/fb"
|
||||
|
||||
export default {
|
||||
props: {
|
||||
error: {
|
||||
|
|
@ -37,7 +39,9 @@ export default {
|
|||
},
|
||||
}
|
||||
},
|
||||
|
||||
beforeMount() {
|
||||
initializeFirebase()
|
||||
},
|
||||
computed: {
|
||||
statusCode() {
|
||||
return (this.error && this.error.statusCode) || 500
|
||||
|
|
|
|||
Loading…
Reference in a new issue