当前位置:网站首页>。。。。。。
。。。。。。
2022-07-26 11:27:00 【心上唯今】
1.创建项目
1.1 安装创建 Vue 项目和配置
# vue-element-admin 中文文档
https://panjiachen.gitee.io/vue-element-admin-site/zh/guide/
# 克隆项目
git clone https://github.com/PanJiaChen/vue-element-admin.git
# 进入项目目录
cd vue-element-admin
# 安装依赖
npm install
# 建议不要用 cnpm 安装 会有各种诡异的 bug 可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org
# 本地开发 启动项目
npm run dev
1.2 配置开发工具和高效代码块
1.2.1 Vscode
1.2.1.1 Element UI Snippets

1,2.1.2 Vue2 Snippets

IntelliJ IDEA Keybindings
JetBrains IDE Keymap
Markdown Preview Enhanced
vscode-icons
Path Intellisense
Highlight Matching Tag
Auto Rename Tag
VSCode Great Icons
indent-rainbow
npm Intellisense
Image preview
vscode-pigments
Parameter Hints
Quokka.js
1.3 创建路由菜单和页面
src/views/course/文件夹下创建组件

<template>
<div>音频/专栏/图文/视频</div>
</template>
<script>
export default {
name: '',
data() {
return {}
}
}
</script>
<style lang="scss" scoped>
</style>
src/router/index.js进行对应动态权限的路由配置
export const asyncRoutes = [
{
path: '/course',
component: Layout,
redirect: 'course/media',
name: 'Course',
meta: {
title: '课程',
icon: 'excel',
roles: ['admin', 'editor'] // you can set roles in root nav
},
// alwaysShow: true,
children: [
{
path: 'media',
component: () => import('@/views/course/media'),
name: 'Media',
meta: {
title: '图文'
}
},
{
// hidden: true,
path: 'audio',
component: () => import('@/views/course/audio'),
name: 'Audio',
meta: {
title: '音频'
}
},
{
path: 'video',
component: () => import('@/views/course/video'),
name: 'Video',
meta: {
title: '视频'
}
},
{
path: 'column',
component: () => import('@/views/course/column'),
name: 'Column',
meta: {
title: '专栏'
}
}
]
},
src/styles/variabels.scss下找到$sideBarWidth进行侧边栏长度修改
2.课程模块开发
2.1 图文列表页开发
给.vue 文件添加 html 代码提示

2.2 新增 api 和 mock 使用
2.3 删除图文功能
2.4 新增图文功能
2.5 完善图文管理细节
2.6 音频列表管理功能
2.7 音频新增编辑功能
2.8 管理视频功能开发
3.用户模块开发
4.交易模块开发
边栏推荐
- Data type of SQL Server database
- Exploration on cache design optimization of community like business
- Generation and transformation of pulse waveform
- Programmer growth chapter 28: how can managers not do it by themselves?
- 初试YOLOv7
- 浅谈VIO之IMU预积分(还是刚入门时的想法)
- Preliminary test yolov7
- 3dunity game project actual combat - aircraft war
- [cloud co creation] what good habits do you adhere to in order to write good code?
- 7月27日19:30直播预告:HarmonyOS3及华为全场景新品发布会
猜你喜欢

3.1 创建菜单与游戏页面——上

Exploration on cache design optimization of community like business

数据中台建设(二):数据中台简单介绍

初试YOLOv7

梅科尔工作室-华为14天鸿蒙设备开发实战笔记八

After 4 months of job search and 15 interviews, I finally got 3 offers, ranking P7+

公司无法访问b站

Blue screen problem in win10 1903 notebook hot spot

Preliminary test yolov7
![[idea] how to create a new project](/img/33/f210d59ccd3664487f401929dac24c.png)
[idea] how to create a new project
随机推荐
Esp8266 Arduino programming example GPIO input and output
Outsourcing for four years, abandoned
Dichotomous template summary
Scrapy IP agent is not responding
五万美元的年薪是如何花光的
《微信小程序-进阶篇》Lin-ui组件库源码分析-Button组件(一)
Three properties of concurrency
ESP8266-Arduino编程实例-认识ESP8266
Database composition trigger
外包干了四年,废了...
Esp8266 Arduino programming example - development environment construction (based on Arduino IDE)
Pyqt5 rapid development and practice Chapter 1 understanding pyqt5
查询进阶 别名
Swagger2.9.2 tutorial and swagger3.0.0 tutorial
贝尔曼期望方程状严谨证明
公司无法访问b站
3.1 创建菜单与游戏页面——上
easyui04
swagger2.9.2教程 与swagger3.0.0教程
剑指 Offer 25. 合并两个排序的链表