From 5ab4073fa0350b08ac26246caf9d8b1d3920941a Mon Sep 17 00:00:00 2001 From: imhcg Date: Wed, 16 Feb 2022 21:36:32 +0800 Subject: [PATCH] Fix rootName display problem --- app/home/down-git.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/home/down-git.js b/app/home/down-git.js index fab3c38..e73d166 100644 --- a/app/home/down-git.js +++ b/app/home/down-git.js @@ -22,8 +22,9 @@ downGitModule.factory('downGitService', [ info.author = splitPath[1]; info.repository = splitPath[2]; info.branch = splitPath[4]; + + info.rootName = decodeURI(splitPath[splitPath.length-1]); - info.rootName = splitPath[splitPath.length-1]; if(!!splitPath[4]){ info.resPath = repoPath.substring( repoPath.indexOf(splitPath[4])+splitPath[4].length+1