fix some for api download pic

This commit is contained in:
Montech
2026-09-19 15:44:00 +03:30
parent 7227e9c61b
commit 79226c9f13
247 changed files with 409 additions and 199 deletions
@@ -0,0 +1 @@
import{x as r,z as f,M as m}from"./index-r6Bugecl.js";function M(o){const{onSuccess:n,successMessage:i="با موفقیت حذف شد",successType:u="success",fallbackErrorMessage:l="خطا در حذف"}=o;async function d(a,e){var t,c;try{(e==null?void 0:e.method)==="post"?await r.post(a):await r.delete(a),f[u](i),await n()}catch(s){m.error({title:((c=(t=s==null?void 0:s.response)==null?void 0:t.data)==null?void 0:c.message)??l,okText:"بستن"})}}return{remove:d}}export{M as u};