fix
This commit is contained in:
parent
faf32a42b6
commit
cd3d92f364
|
@ -119,13 +119,13 @@
|
||||||
refreshGlobalStat(true);
|
refreshGlobalStat(true);
|
||||||
|
|
||||||
if (!response.hasError && state === 'start') {
|
if (!response.hasError && state === 'start') {
|
||||||
if ($location.path() !== '/downloading') {
|
if ($location.path() === '/waiting') {
|
||||||
$location.path('/downloading');
|
$location.path('/downloading');
|
||||||
} else {
|
} else {
|
||||||
$route.reload();
|
$route.reload();
|
||||||
}
|
}
|
||||||
} else if (!response.hasError && state === 'pause') {
|
} else if (!response.hasError && state === 'pause') {
|
||||||
if ($location.path() !== '/waiting') {
|
if ($location.path() === '/downloading') {
|
||||||
$location.path('/waiting');
|
$location.path('/waiting');
|
||||||
} else {
|
} else {
|
||||||
$route.reload();
|
$route.reload();
|
||||||
|
|
Reference in a new issue