Skip to content

Commit

Permalink
feat(web): 网页版视频播放
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed Jun 5, 2024
1 parent 31daa85 commit 293f36a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/web/src/api/electron.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { PLATFORM } from '@/constants';
import { request } from '@/utils/request';

// 窗口最小化
Expand Down Expand Up @@ -37,6 +38,10 @@ export function alwaysOnTop(pinned: boolean) {

// 打开新窗口
export function openWindow(data: any) {
if (PLATFORM === 'browser') {
window.open((/^\//.test(data.url) ? '/#' : '') + data.url);
return;
}
return request({
method: 'post',
url: 'openWindow',
Expand Down

0 comments on commit 293f36a

Please sign in to comment.