vue.js + NuxtJSを初めてみる

ビュー

Nuxt 2

ビュー (Views) セクションでは、Nuxt アプリケーション内の特定のルートのデータとビューを設定するために必要な…

app.html

全ページのテンプレートはプロジェクトのルートディレクトリにapp.htmlを作成することでカスタマイズできます。

レイアウト(layouts/

このlayoutsディレクトリは、ページコンポーネントのlayoutプロパティでアクセスできます。

<script>
export default {
  layout: 'blog'
}
</script>

default.vue

メインのレイアウトを拡張できます。

任意の名前でレイアウトを作成し、ページコンポーネントで利用できます。

エラーページ

error.vueを追加することで、404エラーページ等を作成できます。

 

次はAPIについて


Fatal error: Uncaught Error: Call to undefined function set_post_views() in /home/jszk/desnote.com/public_html/wpjs/wp-content/themes/the-thor-child/single.php:658 Stack trace: #0 /home/jszk/desnote.com/public_html/wpjs/wp-includes/template-loader.php(78): include() #1 /home/jszk/desnote.com/public_html/wpjs/wp-blog-header.php(19): require_once('/home/jszk/desn...') #2 /home/jszk/desnote.com/public_html/index.php(17): require('/home/jszk/desn...') #3 {main} thrown in /home/jszk/desnote.com/public_html/wpjs/wp-content/themes/the-thor-child/single.php on line 658