UNPKG
@tencentcloud/ai-desk-customer-uniapp
Version:
latest (1.6.8)
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.11
1.5.10
1.5.9
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
0.7.0
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
uni-app Vue UIKit for AI Desk
@tencentcloud/ai-desk-customer-uniapp
/
components
/
common
/
RichText
/
plugins
/
audio
/
build.js
12 lines
(11 loc)
•
320 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
module.exports = { usingComponents: {
'my-audio'
:
'../audio/audio'
}, handler (
file
) {
// 删去原来的 audio 标签
if
(
file
.basename ===
'node.wxml'
||
file
.basename ===
'node.vue'
) {
file
.contents = Buffer.
from
(
file
.contents.toString().replace(/<audio[\s\S]+?>/,
''
)) } } }