Giter Site home page Giter Site logo

dynamic-router's Introduction

dynamic-router

daynamic-router to display menu

node-server,先启动node-server,再启动vue项目

用node写了一个简单的服务器,向前端传路由和菜单数据,

  1. 切换到node-server文件夹 cd node-server

  2. 安装依赖 cnpm install

  3. 启动后台 node server

运行vue, 重开一个终端

  1. 安装依赖 cnpm install

  2. 运行 npm run dev

说明

觉得对你有帮助,请点右上角的Star支持一下
推荐一下我的另一个项目基于vue的UI框架(教你从零开始造轮子) 点这里
推荐一下我的另一个项目基于react的饿了吗项目(全家桶, 很适合react进阶用) 点这里

描述

初始的时候只有404和login,通过动态添加路由和控制菜单显示

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.