From e41a89868670903452ef2d3f30513f75d0d4aa4e Mon Sep 17 00:00:00 2001 From: adonis Date: Sat, 1 Aug 2026 14:10:21 +0330 Subject: [PATCH] fix pargar and login 2 --- components.d.ts | 1 + src/store/configStore.ts | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/store/configStore.ts diff --git a/components.d.ts b/components.d.ts index 994bcc9..01c2bda 100644 --- a/components.d.ts +++ b/components.d.ts @@ -13,6 +13,7 @@ declare module 'vue' { ADivider: typeof import('ant-design-vue/es')['Divider'] AForm: typeof import('ant-design-vue/es')['Form'] AFormItem: typeof import('ant-design-vue/es')['FormItem'] + AImage: typeof import('ant-design-vue/es')['Image'] AInput: typeof import('ant-design-vue/es')['Input'] AInputPassword: typeof import('ant-design-vue/es')['InputPassword'] AModal: typeof import('ant-design-vue/es')['Modal'] diff --git a/src/store/configStore.ts b/src/store/configStore.ts new file mode 100644 index 0000000..4809775 --- /dev/null +++ b/src/store/configStore.ts @@ -0,0 +1,15 @@ +import { ref } from 'vue' +import { defineStore } from 'pinia' + +export const useConfigStore = defineStore('config', () => { + const config = ref(window.__APP_CONFIG__?.user) + + async function getConfigData() { + config.value = window.__APP_CONFIG__?.user + } + + return { + config, + getConfigData, + } +})