![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nuxt
huoxingd
这个作者很懒,什么都没留下…
展开
-
nuxt 的 父模版 子模版
子模版继承非默认父模板layouts/default.vue 是默认的父模版子模版 pages/server.vue<script> export default { //layout: 调用的父模版 layout: "servera", name: "server", }</script>...原创 2019-04-26 15:32:42 · 231 阅读 · 0 评论 -
nuxt.js 的一些配置例子
配置全局 根目录 nuxt.config.jsmodule.exports = { /* ** Headers of the page */ head: { //title:网站头部---------- title: 'starter', meta: [ {charset: 'utf-8'...原创 2019-04-26 16:00:27 · 390 阅读 · 0 评论 -
nuxt.js 路由
创建路由 server/interface/city.jsimport Router from "koa-router"//路由const router = new Router({ prefix: "/city"})router.get("/list", async (ctx) => { ctx.body = ['北京', "天津"]});expor...原创 2019-04-26 16:29:38 · 427 阅读 · 0 评论