mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
chore: format codes
This commit is contained in:
parent
6922c716e2
commit
9351f6bc89
73 changed files with 2321 additions and 2321 deletions
42
src/main.js
42
src/main.js
|
|
@ -1,33 +1,33 @@
|
|||
import Vue from "vue";
|
||||
import VueAnalytics from "vue-analytics";
|
||||
import App from "./App.vue";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
import i18n from "@/locale";
|
||||
import "@/assets/icons";
|
||||
import "@/utils/filters";
|
||||
import "./registerServiceWorker";
|
||||
import { dailyTask } from "@/utils/common";
|
||||
import Vue from 'vue';
|
||||
import VueAnalytics from 'vue-analytics';
|
||||
import App from './App.vue';
|
||||
import router from './router';
|
||||
import store from './store';
|
||||
import i18n from '@/locale';
|
||||
import '@/assets/icons';
|
||||
import '@/utils/filters';
|
||||
import './registerServiceWorker';
|
||||
import { dailyTask } from '@/utils/common';
|
||||
|
||||
window.resetApp = () => {
|
||||
localStorage.clear();
|
||||
indexedDB.deleteDatabase("yesplaymusic");
|
||||
document.cookie.split(";").forEach(function (c) {
|
||||
indexedDB.deleteDatabase('yesplaymusic');
|
||||
document.cookie.split(';').forEach(function (c) {
|
||||
document.cookie = c
|
||||
.replace(/^ +/, "")
|
||||
.replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/");
|
||||
.replace(/^ +/, '')
|
||||
.replace(/=.*/, '=;expires=' + new Date().toUTCString() + ';path=/');
|
||||
});
|
||||
return "已重置应用,请刷新页面(按Ctrl/Command + R)";
|
||||
return '已重置应用,请刷新页面(按Ctrl/Command + R)';
|
||||
};
|
||||
|
||||
console.log(
|
||||
"如出现问题,可尝试在本页输入 %cresetApp()%c 然后按回车重置应用。",
|
||||
"background: #eaeffd;color:#335eea;padding: 4px 6px;border-radius:3px;",
|
||||
"background:unset;color:unset;"
|
||||
'如出现问题,可尝试在本页输入 %cresetApp()%c 然后按回车重置应用。',
|
||||
'background: #eaeffd;color:#335eea;padding: 4px 6px;border-radius:3px;',
|
||||
'background:unset;color:unset;'
|
||||
);
|
||||
|
||||
Vue.use(VueAnalytics, {
|
||||
id: "UA-180189423-1",
|
||||
id: 'UA-180189423-1',
|
||||
router,
|
||||
});
|
||||
|
||||
|
|
@ -39,5 +39,5 @@ new Vue({
|
|||
i18n,
|
||||
store,
|
||||
router,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
render: h => h(App),
|
||||
}).$mount('#app');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue