From cd3d92f3647aea5701bf1c3202871c38089c4da0 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 11 Dec 2016 01:10:56 +0800 Subject: [PATCH] fix --- src/scripts/controllers/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/controllers/main.js b/src/scripts/controllers/main.js index c4d3579..446acce 100644 --- a/src/scripts/controllers/main.js +++ b/src/scripts/controllers/main.js @@ -119,13 +119,13 @@ refreshGlobalStat(true); if (!response.hasError && state === 'start') { - if ($location.path() !== '/downloading') { + if ($location.path() === '/waiting') { $location.path('/downloading'); } else { $route.reload(); } } else if (!response.hasError && state === 'pause') { - if ($location.path() !== '/waiting') { + if ($location.path() === '/downloading') { $location.path('/waiting'); } else { $route.reload();