2016-11-08 01:57:55 +00:00
|
|
|
<template>
|
2016-11-08 02:48:18 +00:00
|
|
|
<div class="container">
|
2016-11-08 02:39:57 +00:00
|
|
|
<p><button @click="showLoginError">Notif me!</button></p>
|
2016-11-08 01:57:55 +00:00
|
|
|
<p>Home - <router-link to="/about">About</router-link></p>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2016-11-08 02:39:57 +00:00
|
|
|
let miniToastr
|
|
|
|
if (process.BROWSER) {
|
|
|
|
miniToastr = require('mini-toastr')
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
mounted () {
|
|
|
|
if (process.BROWSER) {
|
|
|
|
miniToastr.init()
|
|
|
|
}
|
|
|
|
},
|
|
|
|
notifications: {
|
|
|
|
showLoginError: {
|
|
|
|
title: 'Welcome!',
|
|
|
|
message: 'Hello from nuxt.js',
|
|
|
|
type: 'info'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-11-08 01:57:55 +00:00
|
|
|
</script>
|
2016-11-08 02:48:18 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
.container {
|
|
|
|
text-align: center;
|
|
|
|
padding-top: 100px;
|
|
|
|
font-family: sans-serif;
|
|
|
|
}
|
|
|
|
</style>
|