This commit is contained in:
polv committed 2021-10-25 11:05:38 +07:00
1 parent 7d5114953b
commit cbc36d19f5
7 files changed
+215 -194

No files matched your search

+5 -1
View File
@@ -102,6 +102,10 @@ import { api, IType } from '~/assets/api'
export default class ContextMenu extends Vue {
@Prop() id?: string
@Prop() entry?: string
@Prop() audio?: {
mimetype?: string
url: string
}[]
@Prop() list?: string[]
@Prop() type?: IType
@Prop() source?: string
@@ -176,7 +180,7 @@ export default class ContextMenu extends Vue {
async doSpeak() {
if (this.entry) {
await speak(this.entry)
await speak(this.entry, { url: this.audio?.[0]?.url })
}
}