base_ui/composables/useMyComposable.ts

45 lines
930 B
TypeScript
Raw Normal View History

2025-03-11 10:16:19 +00:00
// import { useStorage } from "@vueuse/core";
2025-02-01 09:34:55 +00:00
2025-03-11 10:16:19 +00:00
// import { ref } from "vue";
// import { useCommonStore } from "~/stores/commonStore";
2025-02-01 09:34:55 +00:00
2025-03-11 10:16:19 +00:00
// export function useMyComposable() {
// const count = ref(0);
2025-02-01 09:34:55 +00:00
2025-03-11 10:16:19 +00:00
// const increment = () => {
// count.value++;
// };
2025-02-01 09:34:55 +00:00
2025-03-11 10:16:19 +00:00
// const decrement = () => {
// count.value--;
// };
2025-02-01 09:34:55 +00:00
2025-03-11 10:16:19 +00:00
// return {
// count,
// increment,
// decrement,
// };
// }
2025-02-01 09:34:55 +00:00
2025-03-11 10:16:19 +00:00
// export function useGetSchema() {
// const commonStore = useCommonStore();
2025-02-01 09:34:55 +00:00
2025-03-11 10:16:19 +00:00
// try {
// return useAsyncData("shema", () =>
// $fetch("/api/ali", {
// headers: {
// headers: { Authorization: useStorage("id_token") },
// },
// method: "post",
// body: {
// organ: commonStore.organNameGetter,
// system: "search",
// build_state: buildState(),
// },
// })
// );
// } catch (err) {
// console.info(err);
// }
// }