Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lzb_79
uni-app
提交
9e9e128b
U
uni-app
项目概览
lzb_79
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9e9e128b
编写于
6月 24, 2021
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore(App): getBackgroundAudioManager
上级
2c800299
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
8 deletion
+9
-8
packages/uni-api/src/index.ts
packages/uni-api/src/index.ts
+1
-1
packages/uni-api/src/protocols/context/backgroundAudio.ts
packages/uni-api/src/protocols/context/backgroundAudio.ts
+0
-2
packages/uni-api/src/protocols/context/getBackgroundAudioManager.ts
...ni-api/src/protocols/context/getBackgroundAudioManager.ts
+3
-0
packages/uni-app-plus/src/service/api/context/getBackgroundAudioManager.ts
...plus/src/service/api/context/getBackgroundAudioManager.ts
+4
-4
packages/uni-app-plus/src/service/api/index.ts
packages/uni-app-plus/src/service/api/index.ts
+1
-1
未找到文件。
packages/uni-api/src/index.ts
浏览文件 @
9e9e128b
...
...
@@ -21,7 +21,7 @@ export * from './protocols/base/canIUse'
export
*
from
'
./protocols/context/context
'
export
*
from
'
./protocols/context/canvas
'
export
*
from
'
./protocols/context/
backgroundAudio
'
export
*
from
'
./protocols/context/
getBackgroundAudioManager
'
export
*
from
'
./protocols/device/makePhoneCall
'
export
*
from
'
./protocols/device/setClipboardData
'
...
...
packages/uni-api/src/protocols/context/backgroundAudio.ts
已删除
100644 → 0
浏览文件 @
2c800299
export
const
API_BACKGROUND_AUDIO
=
'
getBackgroundAudioManager
'
export
type
API_TYPE_BACKGROUND_AUDIO
=
typeof
uni
.
getBackgroundAudioManager
packages/uni-api/src/protocols/context/getBackgroundAudioManager.ts
0 → 100644
浏览文件 @
9e9e128b
export
const
API_GET_BACKGROUND_AUDIO_MANAGER
=
'
getBackgroundAudioManager
'
export
type
API_TYPE_GET_BACKGROUND_AUDIO_MANAGER
=
typeof
uni
.
getBackgroundAudioManager
packages/uni-app-plus/src/service/api/context/
backgroundAudio
.ts
→
packages/uni-app-plus/src/service/api/context/
getBackgroundAudioManager
.ts
浏览文件 @
9e9e128b
import
{
extend
}
from
'
@vue/shared
'
import
{
defineSyncApi
,
API_
BACKGROUND_AUDIO
,
API_TYPE_
BACKGROUND_AUDIO
,
API_
GET_BACKGROUND_AUDIO_MANAGER
,
API_TYPE_
GET_BACKGROUND_AUDIO_MANAGER
,
}
from
'
@dcloudio/uni-api
'
import
{
once
}
from
'
@dcloudio/uni-shared
'
import
{
getRealPath
}
from
'
@dcloudio/uni-platform
'
...
...
@@ -441,8 +441,8 @@ class BackgroundAudioManager implements UniApp.BackgroundAudioManager {
let
backgroundAudioManager
:
BackgroundAudioManager
export
const
getBackgroundAudioManager
=
defineSyncApi
<
API_TYPE_
BACKGROUND_AUDIO
>
(
API_
BACKGROUND_AUDIO
,
defineSyncApi
<
API_TYPE_
GET_BACKGROUND_AUDIO_MANAGER
>
(
API_
GET_BACKGROUND_AUDIO_MANAGER
,
()
=>
backgroundAudioManager
||
(
backgroundAudioManager
=
new
BackgroundAudioManager
())
...
...
packages/uni-app-plus/src/service/api/index.ts
浏览文件 @
9e9e128b
...
...
@@ -20,7 +20,7 @@ export * from './network/request'
export
*
from
'
./network/socket
'
export
*
from
'
./context/createInnerAudioContext
'
export
*
from
'
./context/
backgroundAudio
'
export
*
from
'
./context/
getBackgroundAudioManager
'
export
*
from
'
./location/getLocation
'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录