perf: 简化store文件中导出和导入用法

This commit is contained in:
xiaoxian521
2024-04-16 11:49:15 +08:00
parent 5d3a9dff46
commit 4cbf9056b1
8 changed files with 81 additions and 35 deletions

View File

@@ -1,7 +1,4 @@
import { defineStore } from "pinia";
import { store } from "@/store";
import { getConfig } from "@/config";
import type { setType } from "./types";
import { type setType, store, defineStore, getConfig } from "../utils";
export const useSettingStore = defineStore({
id: "pure-setting",