From f7423c54dbc0829f4e4cba8088e28a573ef8fab9 Mon Sep 17 00:00:00 2001 From: song Date: Tue, 1 Mar 2022 17:06:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 ---- src/components/Detail/editor.vue | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2ceb07c..a4fb36f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -21,24 +21,20 @@ export default { methods: { setCode(path) { - console.log('path: ', path); router.options.routes.forEach(first => { if(first && first.path && first.path === path){ - console.log('first.code: ',first, first.code); localStorage.setItem('code', first.code) return; }else{ if(first.children && first.children.length){ first.children.forEach(second => { if(second && second.path && second.path === path){ - console.log('second.code: ', second.code); localStorage.setItem('code', second.code) return; }else{ if(second.children && second.children.length){ second.children.forEach(third => { if(third && third.path && third.path === path){ - console.log('third.code: ', third.code); localStorage.setItem('code', third.code) return; } diff --git a/src/components/Detail/editor.vue b/src/components/Detail/editor.vue index fcbf813..83a4fea 100644 --- a/src/components/Detail/editor.vue +++ b/src/components/Detail/editor.vue @@ -4,8 +4,8 @@