From b877d278424f7f60737644d08560371c63e14888 Mon Sep 17 00:00:00 2001 From: xmcp Date: Fri, 10 Jan 2020 13:15:42 +0800 Subject: [PATCH] fix sidebar_stack pop to [] --- src/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App.js b/src/App.js index d2863be..291fa3a 100644 --- a/src/App.js +++ b/src/App.js @@ -56,6 +56,7 @@ class App extends Component { ns.splice(1,1); ns=ns.concat([[title,content]]); } else if(mode==='pop') { + if(ns.length===1) return; ns.pop(); } else if(mode==='replace') { ns.pop();