Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

Commit e180720

Browse files
committed
1 parent f09ff95 commit e180720

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

src/app/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,9 @@ angular
7878

7979
$httpProvider.interceptors.push('AuthInterceptor');
8080

81-
$urlRouterProvider.otherwise('/posts');
81+
//$urlRouterProvider.otherwise('/posts');
82+
$urlRouterProvider.otherwise($injector => {
83+
var $state = $injector.get('$state');
84+
$state.go('post.list');
85+
});
8286
});

www/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!doctype html><html ng-app="hey"><head><meta charset="utf-8"><title>Hey Hexo</title><meta name="description" content=""><meta name="viewport" content="width=device-width"><style type="text/css" media="screen">.loading{background-color:#2196f3;width:100%}.loading img{position:absolute;right:0;top:0;bottom:0;left:0;margin:auto}</style><link rel="stylesheet" href="styles/vendor-2f0432c8.css"><link rel="stylesheet" href="styles/app-ad5824a3.css"></head><body layout="column"><!--[if lt IE 10]>
1+
<!doctype html><html ng-app="hey"><head><meta charset="utf-8"><title>Hey Hexo</title><meta name="description" content=""><meta name="viewport" content="width=device-width"><style type="text/css" media="screen">.loading{background-color:#2196f3;width:100%}.loading img{position:absolute;right:0;top:0;bottom:0;left:0;margin:auto}</style><link rel="stylesheet" href="styles/vendor-2f0432c8.css"><link rel="stylesheet" href="styles/app-ac0c49d2.css"></head><body layout="column"><!--[if lt IE 10]>
22
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
33
<![endif]--><div ui-view="" layout="" flex=""><div class="loading"><img src="assets/images/rings.svg" width="128" alt=""></div></div><script>
4-
</script><script src="scripts/vendor-054b6440.js"></script><script src="scripts/app-87d9c6bb.js"></script></body></html>
4+
</script><script src="scripts/vendor-054b6440.js"></script><script src="scripts/app-034f5e84.js"></script></body></html>

www/scripts/app-034f5e84.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/scripts/app-87d9c6bb.js

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)