etaConfig.js 418 B

12345678910111213141516171819
  1. /* eta基本配置信息 */
  2. import { defineStore } from "pinia";
  3. import { getBaseConfig } from '@/api/etaConfig.js'
  4. export const useConfigSettingStore = defineStore('etaConfig',{
  5. state: () => {
  6. return {
  7. etaConfigInfo: null
  8. }
  9. },
  10. actions: {
  11. async getBaseConfigSetting() {
  12. const res = await getBaseConfig();
  13. if(res.Ret !== 200) return
  14. this.etaConfigInfo = res.Data
  15. }
  16. }
  17. })