object.someMutatingFunction(...)这导致了这个错误Cannot use mutating member on immutable value of type 'Blabla',我可以通过添加var来修复这个错误: otherArray[index] = object.someMutatingFunction唯一的想法就是添加一个新的var变量。我还能做些什么来阻止这个警告吗?
我遵循这个教程:https://developers.google.com/web/fundamentals/codelabs/push-notifications#notification_click,并在VueJS中实现了它。 在创建的钩子上,我运行以下函数: register() { console.log("Service Worker and Push is supporte