feat new update from MR S.Esmaieli

This commit is contained in:
Montech
2026-10-11 14:43:17 +03:30
parent 574fa1b4aa
commit 2e21758c2c
282 changed files with 502 additions and 336 deletions
+1
View File
@@ -0,0 +1 @@
import{d as c,v as r,x as n,b as i,k as d,o as l}from"./index-BA_yBNil.js";import{u as m}from"./auth-Dax0yuDC.js";const u={style:{"min-height":"100vh",display:"grid","place-items":"center"}},g=c({__name:"IamCallback",setup(p){const t=d(),o=m();return r(async()=>{const e=new URLSearchParams(window.location.search);if(sessionStorage.setItem("gb_admin_iam_sso_checked","1"),e.get("error")||!e.get("code")||!e.get("state")){await t.replace("/auth/login");return}try{const{data:s}=await n.post("admin/auth/sso/callback",{code:e.get("code"),state:e.get("state")}),a={...s};delete a.roles,delete a.ut,o.inject(a),await t.replace("/dashboard/ecommerce")}catch{await t.replace("/auth/login")}}),(e,s)=>(l(),i("div",u,"در حال ورود..."))}});export{g as default};