摘要:
详细步骤 1 添加登录页面 步骤: Header.vue 写一个登录按钮,<router-link to = ' /xx'> 在路由的 index.js中添加这个 新的路由,{'path':'xx','name':'xx',component:xx} 新建这个 xx 组件。 最终,完成 点击这个按钮 阅读全文
posted @ 2018-03-14 19:28
骑者赶路
阅读(467)
评论(0)
推荐(0)
摘要:
router-view : <router-view> 组件是一个 functional 组件,渲染路径匹配到的视图组件 一 样式 1 在一个vue组件,<template></template>中,在加入<router-view></router-view> <template> <div> .. 阅读全文
posted @ 2018-03-14 17:02
骑者赶路
阅读(658)
评论(0)
推荐(0)
浙公网安备 33010602011771号