mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
fix: bugs
This commit is contained in:
parent
872fd73b05
commit
4f4f2b09e3
9 changed files with 85 additions and 29 deletions
17
src/main.js
17
src/main.js
|
|
@ -13,6 +13,23 @@ import * as Sentry from "@sentry/browser";
|
|||
import { Vue as VueIntegration } from "@sentry/integrations";
|
||||
import { Integrations } from "@sentry/tracing";
|
||||
|
||||
window.resetApp = () => {
|
||||
localStorage.clear();
|
||||
indexedDB.deleteDatabase("yesplaymusic");
|
||||
document.cookie.split(";").forEach(function (c) {
|
||||
document.cookie = c
|
||||
.replace(/^ +/, "")
|
||||
.replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/");
|
||||
});
|
||||
return "已重置应用,请刷新页面(按Ctrl/Command + R)";
|
||||
};
|
||||
|
||||
console.log(
|
||||
"如出现问题,可尝试在本页输入 %cresetApp()%c 然后按回车重置应用。",
|
||||
"background: #eaeffd;color:#335eea;padding: 4px 6px;border-radius:3px;",
|
||||
"background:unset;color:unset;"
|
||||
);
|
||||
|
||||
Vue.use(VueAnalytics, {
|
||||
id: "UA-180189423-1",
|
||||
router,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue