@@ -29,7 +29,7 @@ export function useAudio() {
});
return new Promise((resolve, reject) => {
sound.on('unlock',()=>{
- console.log("我已经解锁了")
+ alert("我解锁了")
})
sound.once("load", function () {
let id = sound.play();
@@ -9,16 +9,7 @@ const store = createStore({
userData: {
schoolName: ""
},
- lightAudio: new Howl({
- src: "",
- xhr: {
- method: 'GET',
- headers: {
- Authorization: 'Bearer:' + store.state.token,
- },
- withCredentials: true,
- }
- }),
+ lightAudio: null,
lightConfig: {
interval: 5,
directives: 5,