Skip to content

bigJiHua/Multi-level-dynamic-menu-Vue2

Repository files navigation

Multi-level dynamic menu Vue2

基于Vue2 开发的一个 多层级动态菜单

Project setup

npm install

Have an Api

  test API append [ https://api.6xr.cc/api/uploads/data.json ] ❌
	⚠ 这个api不定时会无效,如果无效请使用json-server
	⚠ This api will be invalid from time to time, if invalid, please use json-server

	If your computer does not have the json-server service installed
	You need to download and install json-server globally
	After the installation is complete, open ./src/data in the project directory
	Run json-server data.json in the console
	After running you will get an address similar to http://localhost:3000/data,
	Copy it to open line 47 of src/views/RunModule.vue and replace it
	Then reopen a console window and run npm run serve to run the project
	-----------------------------------------------------------------------------
	如果你的计算机没有安装json-server服务
	你需要去下载并全局安装json-server
	安装完成后打开项目目录的 ./src/data
	在控制台运行 json-server data.json
	运行完成后你将得到一个类似于 http://localhost:3000/data 的地址,
	复制它打开 src/views/RunModule.vue 的 47行 ,把他替换
	然后重新打开一个控制台窗口 运行 npm run serve 将项目运行

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Module Quick look

快速查看