【fix】优化代码

This commit is contained in:
黄少君
2024-02-22 18:37:23 +08:00
parent 17c043348a
commit f8fac0a5bc
246 changed files with 973 additions and 406 deletions

View File

@ -0,0 +1 @@
import{u as n}from"./useInterface.2c7749ae.js";import{at as t}from"./index-d4baa715.js";const{toast:e,loading:o,hideLoading:r}=n(),i=()=>{let n={corpId:"",accountLink:""};return{getServiceData:async function(){try{o(),n=await t()}finally{r()}},openService:async function(){return Reflect.ownKeys(n).length<=0?e({title:"暂无客服~",icon:"error"}):n.corpId&&n.accountLink?function(n){return window.location.href=n.accountLink,Promise.resolve(!0)}(n):e({title:"暂无客服~",icon:"error"})}}};export{i as u};