Skip to content

运行有三个Error,全是拼写导致的错误,已解决 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/backEnd/ArticleCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import api from '../../api/index'
import marked from 'marked';
import hlj from 'highlight.js'
import 'highlight.js/styles/atom-one-dark.css'
import NProgress from 'NProgress'
import NProgress from 'nprogress'
export default {
data(){
return {
Expand Down
2 changes: 1 addition & 1 deletion src/components/backEnd/ArticleEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import api from '../../api/index'
import marked from 'marked';
import hlj from 'highlight.js'
import 'highlight.js/styles/atom-one-dark.css'
import NProgress from 'NProgress'
import NProgress from 'nprogress'
export default {
data(){
return {
Expand Down
129 changes: 71 additions & 58 deletions src/routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,66 +8,79 @@ import ClassList from '../components/backEnd/ClassList'
import Home from '../components/fronted/Home';
import Front from '../components/fronted/Front';
import About from '../components/fronted/About';
import Tags from '../components/fronted/tags';
import Tags from '../components/fronted/Tags';
import Article from '../components/fronted/Article';
import NotFound from '../components/NotFound'
export default [

{
path:'/reg',
component:Reg,
meta:{auth:false},
hidden:true
},
{
path:'/',
component:Front,//这是文章页
hidden:true,
children:[
{path:'',redirect:'home', meta:{auth:false}},
{path:'home',component:Home, meta:{auth:false}},
{path:'about',component:About, meta:{auth:false}},
{path:'tags',component:Tags, meta:{auth:false}},
{path:'article/:id',component:Article, meta:{auth:false,scrollToTop: true}},
]
},
{
path:'/login',
component:Login,
hidden:true
},
{
// 后台路由
path:'/admin',
component:Admin,
name:'管理面板',
iconCls: 'el-icon-message',
children:[
{
// 文章列表单独一个组件(可以删除并且编辑,编辑的时候需要跳转到另一个路由)
path:'',hidden:true,redirect: {name:'文章管理'}
},
{
// 文章列表单独一个组件(可以删除并且编辑,编辑的时候需要跳转到另一个路由)
path:'articleList',component:ArticleList,name:'文章管理'
},
{
// 创建文章单独一个组件
path:'articleCreate',component:ArticleCreate,name:'创建文章',hidden:true
},
{
path:'articleEdit/:postId',component:ArticleEdit,hidden:true,name:"编辑文章"
},
{
path:'classList',component:ClassList,name:'分类管理'
// 创建分类直接在分类列表里面出现弹层
}
]
},
{
path:'*',component:NotFound,hidden:true
}
//
{
path: '/reg',
component: Reg,
meta: { auth: false },
hidden: true
},
{
path: '/',
component: Front, //这是文章页
hidden: true,
children: [
{ path: '', redirect: 'home', meta: { auth: false } },
{ path: 'home', component: Home, meta: { auth: false } },
{ path: 'about', component: About, meta: { auth: false } },
{ path: 'tags', component: Tags, meta: { auth: false } },
{ path: 'article/:id', component: Article, meta: { auth: false, scrollToTop: true } },
]
},
{
path: '/login',
component: Login,
hidden: true
},
{
// 后台路由
path: '/admin',
component: Admin,
name: '管理面板',
iconCls: 'el-icon-message',
children: [{
// 文章列表单独一个组件(可以删除并且编辑,编辑的时候需要跳转到另一个路由)
path: '',
hidden: true,
redirect: { name: '文章管理' }
},
{
// 文章列表单独一个组件(可以删除并且编辑,编辑的时候需要跳转到另一个路由)
path: 'articleList',
component: ArticleList,
name: '文章管理'
},
{
// 创建文章单独一个组件
path: 'articleCreate',
component: ArticleCreate,
name: '创建文章',
hidden: true
},
{
path: 'articleEdit/:postId',
component: ArticleEdit,
hidden: true,
name: "编辑文章"
},
{
path: 'classList',
component: ClassList,
name: '分类管理'
// 创建分类直接在分类列表里面出现弹层
}
]
},
{
path: '*',
component: NotFound,
hidden: true
}
//

// {path:'/404',component:NotFound}
]
// {path:'/404',component:NotFound}
]