摘要:
详细步骤 1 添加登录页面 步骤: Header.vue 写一个登录按钮,<router-link to = ' /xx'> 在路由的 index.js中添加这个 新的路由,{'path':'xx','name':'xx',component:xx} 新建这个 xx 组件。 最终,完成 点击这个按钮 阅读全文
摘要:
router-view : <router-view> 组件是一个 functional 组件,渲染路径匹配到的视图组件 一 样式 1 在一个vue组件,<template></template>中,在加入<router-view></router-view> <template> <div> .. 阅读全文