質問編集履歴
2
エラー内容
title
CHANGED
File without changes
|
body
CHANGED
@@ -37,4 +37,11 @@
|
|
37
37
|
//phpからはファイルの相対パスを返しています。
|
38
38
|
return 'media/sound.mp3';
|
39
39
|
}
|
40
|
+
```
|
41
|
+
|
42
|
+
### エラー内容
|
43
|
+
```
|
44
|
+
Module parse failed: Unexpected character '�' (1:0)
|
45
|
+
You may need an appropriate loader to handle this file type.
|
46
|
+
(Source code omitted for this binary file)
|
40
47
|
```
|
1
使用ライブラリ
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,8 +14,13 @@
|
|
14
14
|
</audio>
|
15
15
|
|
16
16
|
data() {
|
17
|
+
options: "",
|
17
18
|
filepath: "",
|
18
19
|
},
|
20
|
+
mount() {
|
21
|
+
// Plyrを使用しています
|
22
|
+
const player = new Plyr("#player", this.options);
|
23
|
+
},
|
19
24
|
methods: {
|
20
25
|
getSound(speaker) {
|
21
26
|
axios.get("/api/get/sound/")
|