diff --git a/src/data/pages.js b/src/data/pages.js index 2a31247d..34f71aae 100644 --- a/src/data/pages.js +++ b/src/data/pages.js @@ -73,7 +73,7 @@ export const pages=[ {title:'我的分享',path:'myshare',component:'share/MyList',hidden:false}, {title:'分享给我的',path:'toshare',component:'share/ToList',hidden:false}, {title:'我的笔记',path:'Mynotes',component:'user/Mynotes',hidden:true}, - {title:'编辑笔记',path:'Mynotes',component:'user/Noteedit',hidden:true}, + {title:'编辑笔记',path:'Noteedit',component:'user/Noteedit',hidden:true}, {title:'我的测评',path:'myassess',component:'user/MyAssess',hidden:true}, {title:'我的收藏',path:'favorites',component:'user/MyFavorites',hidden:false}, {title:'我的关注',path:'follows',component:'user/MyFollow',hidden:false}, diff --git a/src/layout/components/TopNav/Index.vue b/src/layout/components/TopNav/Index.vue index 8471d73c..0fd40ef0 100644 --- a/src/layout/components/TopNav/Index.vue +++ b/src/layout/components/TopNav/Index.vue @@ -4,7 +4,7 @@
- +
首页
diff --git a/src/views/user/Mynotes.vue b/src/views/user/Mynotes.vue index 9769ba5c..3b9a505b 100644 --- a/src/views/user/Mynotes.vue +++ b/src/views/user/Mynotes.vue @@ -41,7 +41,7 @@
- 删除 编辑 + 删除 编辑
@@ -61,7 +61,7 @@
- 删除 编辑 + 删除 编辑
@@ -160,7 +160,9 @@ export default { }, edit(){ - router.push() + this.$router.push({ path: '/user/Noteedit' }); + + } } } diff --git a/src/views/user/Noteedit.vue b/src/views/user/Noteedit.vue index 64b5c9c0..3ffe015f 100644 --- a/src/views/user/Noteedit.vue +++ b/src/views/user/Noteedit.vue @@ -1,15 +1,137 @@ - \ No newline at end of file