fix(achievements): 修复 dev 报错

This commit is contained in:
BTMuli
2023-03-09 16:25:55 +08:00
parent 9aab38e405
commit d6da722074
4 changed files with 41 additions and 30 deletions

View File

@@ -73,7 +73,7 @@ const router = useRouter();
const appStore = useAppStore();
const devStore = useDevStore();
const rail = ref(appStore.sidebar.expand);
const rail = ref(appStore.sidebar);
const showDev = ref(devStore.showDev);
const back = () => {
@@ -85,6 +85,7 @@ const back = () => {
};
function collapse() {
rail.value = !rail.value;
appStore.sidebar = rail.value;
}
function magicClick() {
if (!showDev.value) {