UNPKG

node-karin

Version:

Lightweight, efficient, concise, and stable robot framework.

2 lines (1 loc) 284 B
import{a as t,V as r}from"./index-CrmOvtfz.js";const n=async(e,o)=>{try{const s=await t.serverPost("/api/v1/config/new/save",{type:e,data:o});r.success(s)}catch(s){const a=s instanceof Error?s.message:"未知错误";r.error(a),console.error("保存配置出错:",s)}};export{n as s};