Browse Source

Fix Display Bugs In Edge and Safari

20230320
MengYX 5 years ago
parent
commit
757d4d4847
No known key found for this signature in database GPG Key ID: E63F9C7303E8F604
  1. 6
      public/index.html
  2. 6
      src/App.vue

6
public/index.html

@ -64,13 +64,7 @@
<a href="https://www.google.cn/chrome/">Google Chrome</a> <a href="https://www.google.cn/chrome/">Google Chrome</a>
<a href="https://www.firefox.com.cn/">Mozilla Firefox</a> <a href="https://www.firefox.com.cn/">Mozilla Firefox</a>
</strong> </strong>
<script>
window.onload = function () {
document.getElementById("loader-mask").remove();
};
</script>
</div> </div>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected -->
</body> </body>
</html> </html>

6
src/App.vue

@ -108,7 +108,7 @@
}, },
methods: { methods: {
finishLoad() { finishLoad() {
document.getElementById("loader-mask").remove();
this.$notify.info({ this.$notify.info({
title: '离线使用', title: '离线使用',
message: "音乐解锁加载成功。我们使用PWA技术,可以添加到桌面或收藏夹,无网络状况下也能使用。", message: "音乐解锁加载成功。我们使用PWA技术,可以添加到桌面或收藏夹,无网络状况下也能使用。",
@ -150,13 +150,13 @@
mime: data.mime mime: data.mime
}; };
console.log(data); console.log(data);
_paq.push(["trackEvent", "Unlock", "Success", JSON.stringify(_rp_data)]); window._paq.push(["trackEvent", "Unlock", "Success", JSON.stringify(_rp_data)]);
} else { } else {
this.$notify.error({ this.$notify.error({
title: '错误', title: '错误',
message: '解析此文件时出现问题' message: '解析此文件时出现问题'
}); });
_paq.push(["trackEvent", "Unlock", "Error", file.name]); window._paq.push(["trackEvent", "Unlock", "Error", file.name]);
} }

Loading…
Cancel
Save