build(frontend): 更新数据切分页面构建

This commit is contained in:
caoxiaozhu
2026-07-24 21:11:06 +08:00
parent 9114f3d4c7
commit d4b9a76aa5
132 changed files with 136 additions and 136 deletions

View File

@@ -0,0 +1 @@
import{ae as d,y as f,D as v}from"./index-DMfSG-9l.js";const m=d("tools",()=>{const a="customTools",o=f(n());function n(){try{return JSON.parse(localStorage.getItem(a)||"[]")}catch{return[]}}v(o,e=>{localStorage.setItem(a,JSON.stringify(e))},{deep:!0});function u(e){o.value.push(e)}function l(e,t){const r=o.value.findIndex(c=>c.id===e);r!==-1&&(o.value[r]={...o.value[r],...t})}function s(e){o.value=o.value.filter(t=>t.id!==e)}function i(e){return o.value.find(t=>t.id===e)}return{tools:o,addTool:u,updateTool:l,removeTool:s,getTool:i}});export{m as u};