1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

repair wechat bug (#4150)

This commit is contained in:
杨顺强
2019-10-15 10:16:48 +08:00
committed by Daniel Pan
parent 1790940bc8
commit 295decc039
3 changed files with 21 additions and 4 deletions

View File

@@ -135,8 +135,13 @@ class App extends Component {
navigate(url, {repalce: true});
} else {
let url = siteRoot + 'lib/' + selectedItem.repo_id + '/file' + Utils.encodePath(selectedItem.path);
let newWindow = window.open('about:blank');
newWindow.location.href = url;
let isWeChat = Utils.isWeChat();
if (!isWeChat) {
let newWindow = window.open('about:blank');
newWindow.location.href = url;
} else {
location.href = url;
}
}
}