Skip to content

Commit

Permalink
simplify url
Browse files Browse the repository at this point in the history
simplify url
  • Loading branch information
NatsuDawn committed Jan 8, 2015
1 parent 198f685 commit 6c3fdac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild -->
<base href="/">
</head>
<body ng-app="App">
<!--[if lt IE 7]>
Expand All @@ -42,7 +43,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">GitHuber.info</a>
<a class="navbar-brand" href="">GitHuber.info</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" style="margin-left:15%;">
Expand All @@ -53,9 +54,9 @@
<button type="submit" class="btn btn-default">查看</button>
</form>
<ul class="nav navbar-nav navbar-right">
<li><a href="#/donate">打赏</a>
<li><a href="/donate">打赏</a>
</li>
<li><a href="#/about">关于</a>
<li><a href="/about">关于</a>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">提点建议</a>
Expand Down
3 changes: 2 additions & 1 deletion app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ $(function() {

// Angular app
var App = angular.module('App', ['ngRoute']);
App.config(['$routeProvider', function($routeProvider) {
App.config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) {
$routeProvider.
when('/index', {
controller: 'indexCtl',
Expand All @@ -100,6 +100,7 @@ App.config(['$routeProvider', function($routeProvider) {
otherwise({
redirectTo: '/index'
});
$locationProvider.html5Mode(true);
}]);


0 comments on commit 6c3fdac

Please sign in to comment.