goview_vue/dist/static/js/storage-6dd48a87.js
2023-06-06 11:55:37 +08:00

2 lines
1.4 KiB
JavaScript

var u=Object.defineProperty,p=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var C=(e,o,t)=>o in e?u(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,d=(e,o)=>{for(var t in o||(o={}))E.call(o,t)&&C(e,t,o[t]);if(l)for(var t of l(o))h.call(o,t)&&C(e,t,o[t]);return e},S=(e,o)=>p(e,L(o));var m=(e,o,t)=>new Promise((r,a)=>{var n=s=>{try{c(t.next(s))}catch(g){a(g)}},f=s=>{try{c(t.throw(s))}catch(g){a(g)}},c=s=>s.done?r(s.value):Promise.resolve(s.value).then(n,f);c((t=t.apply(e,o)).next())});import{aL as G,aM as R,ak as b,R as q,aK as v,a9 as I}from"./index-bd6c9e81.js";import{f as A}from"./project.api-492e626c.js";import{u as O}from"./chartEditStore-77de273f.js";const i=O(),x=()=>m(void 0,null,function*(){const e=G(),o=R(b.GO_CHART_STORAGE_LIST);if(!o||o.findIndex(t=>t.id===e.toString())===-1){const t=yield A({projectId:e});if(t&&t.code===q.SUCCESS){const{content:r,state:a}=t.data;if(a===-1)return{isRelease:!1};const n=S(d({},v(r)),{id:e}),{editCanvasConfig:f,requestGlobalConfig:c,componentList:s}=n;return i.editCanvasConfig=f,i.requestGlobalConfig=c,i.componentList=s,n}else I()}else for(let t=0;t<o.length;t++)if(e.toString()===o[t].id){const{editCanvasConfig:r,requestGlobalConfig:a,componentList:n}=o[t];return i.editCanvasConfig=r,i.requestGlobalConfig=a,i.componentList=n,o[t]}});export{x as g};