Nuxt.jsでトーストを使う方法をメモ
インストール
npm i @nuxtjs/toast --save
nuxt.config.js
modules: [ '@nuxtjs/toast', ], toast: { position: 'top-right', }
表示
Success
this.$toast.success("テキスト")
Error
this.$toast.error("テキスト")
参考サイト

@nuxtjs/toast
(]( (](
0
Nuxt.jsでトーストを使う方法をメモ
npm i @nuxtjs/toast --save
nuxt.config.js
modules: [ '@nuxtjs/toast', ], toast: { position: 'top-right', }
Success
this.$toast.success("テキスト")
Error
this.$toast.error("テキスト")
参考サイト
コメント