|
@@ -29,14 +29,7 @@ export function createRouterGuards(router: Router) {
|
|
|
// console.log(to, '修改标题');
|
|
|
// console.log('access token');
|
|
|
document.title = to.meta.title ? to.meta.title : ('音乐数字课堂' as string);
|
|
|
- if ('serviceWorker' in navigator) {
|
|
|
- console.log(caches.keys(), 'caches.keys()');
|
|
|
- caches.keys().then(function (cacheNames) {
|
|
|
- cacheNames.forEach(function (cacheName) {
|
|
|
- caches.delete(cacheName);
|
|
|
- });
|
|
|
- });
|
|
|
- }
|
|
|
+
|
|
|
if (!isChrome()) {
|
|
|
return;
|
|
|
}
|