refactor(projects): 恢复pinia默认写法

This commit is contained in:
Soybean
2022-01-16 20:13:11 +08:00
parent 28b5d22401
commit b2a4ddf5e3
34 changed files with 1242 additions and 965 deletions

View File

@ -1,6 +1,6 @@
<template>
<hover-container class="w-40px" content-class="hover:text-primary" tooltip-content="主题模式">
<dark-mode-switch :dark="theme.darkMode" class="wh-full" @update:dark="setDarkMode" />
<dark-mode-switch :dark="theme.darkMode" class="wh-full" @update:dark="theme.setDarkMode" />
</hover-container>
</template>
@ -9,6 +9,5 @@ import { HoverContainer, DarkModeSwitch } from '@/components';
import { useThemeStore } from '@/store';
const theme = useThemeStore();
const { setDarkMode } = useThemeStore();
</script>
<style scoped></style>

View File

@ -45,7 +45,7 @@ function handleDropdown(optionKey: string) {
positiveText: '确定',
negativeText: '取消',
onPositiveClick: () => {
auth.resetAuthStore(true);
auth.resetAuthStore();
}
});
}