dictionary.8197a0f3.js 450 B

1
  1. import{ax as i}from"./vue.adf17aba.js";import{r as s}from"./index.34b03be2.js";const d=i("Dictionary",{state:()=>({data:{}}),actions:{async getSystemDictionarys(){s({url:"/api/init/dictionary/?dictionary_key=all",method:"get"}).then(r=>{r.data.forEach(t=>{let e=t.children;e.forEach((a,c)=>{switch(a.type){case 1:a.value=Number(a.value);break;case 6:a.value=a.value==="true";break}}),this.data[t.value]=e})})}},persist:{enabled:!0}});export{d as D};