refactor: pinia整合优化重构

This commit is contained in:
郝先瑞
2022-03-11 00:07:34 +08:00
parent 7bd9d70433
commit 4ae629ab65
26 changed files with 675 additions and 563 deletions

View File

@@ -17,12 +17,15 @@
import {computed, onBeforeUnmount, onMounted, ref, watch} from "vue";
import {addClass, removeClass} from '@/utils/index'
import {useSettingStoreHook} from "@/store/modules/settings";
import useStore from "@/store";
// 图标依赖
import {Close, Setting} from '@element-plus/icons-vue'
import {ElColorPicker} from "element-plus";
const {setting} =useStore()
const props = defineProps({
buttonTop: {
default: 250,
@@ -30,7 +33,7 @@ const props = defineProps({
}
})
const theme = computed(() => useSettingStoreHook().theme)
const theme = computed(() =>setting.theme)
const show = ref(false)