fix(achievements): 精简代码,完成 IndexedDB 的接轨,删去 dev 相关页面

This commit is contained in:
BTMuli
2023-03-16 00:55:36 +08:00
parent e2e82a2fd9
commit e2211b513f
14 changed files with 124 additions and 383 deletions

View File

@@ -37,11 +37,6 @@
<img src="../assets/icons/setting.svg" alt="setting" class="sideIcon" />
</template>
</v-list-item>
<v-list-item link href="/dev" v-show="showDev" title="开发">
<template v-slot:prepend>
<v-icon>mdi-bug-outline</v-icon>
</template>
</v-list-item>
</v-list>
</v-navigation-drawer>
</template>
@@ -50,14 +45,11 @@
import { ref } from "vue";
import { useRouter } from "vue-router";
import useAppStore from "../store/modules/app";
import useDevStore from "../store/modules/dev";
const router = useRouter();
const appStore = useAppStore();
const devStore = useDevStore();
const rail = ref(appStore.sidebar);
const showDev = ref(devStore.showDev);
const back = () => {
try {
@@ -70,16 +62,6 @@ function collapse() {
rail.value = !rail.value;
appStore.sidebar = rail.value;
}
function magicClick() {
// 打包的时候不显示开发功能
// if (!showDev.value) {
// devStore.magicCount++;
// if (devStore.magicCount >= 10) {
// showDev.value = true;
// devStore.showDev = true;
// }
// }
}
</script>
<style lang="css">