Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit433d434

Browse files
committed
修复登录页面外部链接打开失败的bug
1 parente55def6 commit433d434

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ window.shell = require("electron").shell;
66
window.APP=angular.module("APP",["ui.router","ngSanitize","infinite-scroll","ngAnimate"]);
77
window.APP.run(["$http","$state","$rootScope",($http,$state,$rootScope)=>{
88
/* markdown内部的链接在浏览器中打开 */
9-
$(document).on("click",".markdown-text a",function(){
9+
$(document).on("click",".markdown-text a, a[target=_blank]",function(){
1010
event.preventDefault();
1111
lethref=$(this).attr('href')||"";
1212
if(href.startsWith("/user/")){

‎app/modules/auth/auth.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
m-loading-text="登录中..."
2020
m-loading-class="btn-loading"></button>
2121
<divclass="login-form-help">
22-
<ahref="https://cnodejs.org/setting"><iclass="fa fa-question-circle-o"></i> 如何获取AccessToken?</a>
22+
<ahref="https://cnodejs.org/setting"target="_blank"><iclass="fa fa-question-circle-o"></i> 如何获取AccessToken?</a>
2323
</div>
2424

2525
</div>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp