/* * @Author: 曹文丽 caowenli@yuan-info.com * @Date: 2023-06-15 15:03:20 * @LastEditors: 曹文丽 * @LastEditTime: 2023-06-28 17:55:29 * @FilePath: \safe-product-authority-browser\src\store\modules\sysInterfaceConfig.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { defineStore } from 'pinia'; import { globSettingData } from '../../utils/env'; import { store } from '..'; export const useSystemConfig = defineStore({ id: 'app-systemconfig', state: () => { return { backgroundPath: '', loginBoxLayout: 2, logoIcoPath: '', logoPath: '', systemName: globSettingData.systemName, systemAbbreviation: globSettingData.systemSubName, }; }, getters: {}, actions: { setBackGround(url: string) {}, }, }); // Need to be used outside the setup export function useSystemConfigStoreWithOut() { return useSystemConfig(store); }