add star href
This commit is contained in:
parent
a8e14c4755
commit
4675ced8e6
|
|
@ -130,6 +130,7 @@ app.controller('menuCtr', ['$scope', '$stateParams', '$state', '$window', '$time
|
||||||
'action': 'add'
|
'action': 'add'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.logout = function () {
|
$scope.logout = function () {
|
||||||
bookmarkService.logout({})
|
bookmarkService.logout({})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
|
|
@ -140,6 +141,11 @@ app.controller('menuCtr', ['$scope', '$stateParams', '$state', '$window', '$time
|
||||||
.catch((err) => console.log('logout err', err));
|
.catch((err) => console.log('logout err', err));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.star = function () {
|
||||||
|
var url = "https://github.com/luchenqun/my-bookmark";
|
||||||
|
$window.open(url, '_blank');
|
||||||
|
}
|
||||||
|
|
||||||
$scope.showUpdate = function () {
|
$scope.showUpdate = function () {
|
||||||
$state.go('settings', {
|
$state.go('settings', {
|
||||||
formIndex: 5,
|
formIndex: 5,
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,11 @@
|
||||||
<i class="sign out icon" title="退出登陆" ng-click="logout()"></i>
|
<i class="sign out icon" title="退出登陆" ng-click="logout()"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="item" style="padding:0 8px 0 13px;" ng-click="star()">
|
||||||
|
<span data-tooltip="如果你觉得我的系统对你有帮助,请点击跳转到 Github 为我 Star">
|
||||||
|
<i class="star icon"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<div class="item" style="padding:0 8px 0 13px;" ng-click="showUpdate()">
|
<div class="item" style="padding:0 8px 0 13px;" ng-click="showUpdate()">
|
||||||
<span class="suggest">
|
<span class="suggest">
|
||||||
<i class="info circle icon"></i>
|
<i class="info circle icon"></i>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue