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, + } +})