fix: typos

This commit is contained in:
xuwei-fit2cloud
2025-06-09 17:39:23 +08:00
parent af6a32ee4d
commit 09f29666e1
@@ -29,12 +29,12 @@ export const initCanvasData = (params: any, callBack: Function) => {
export const saveDashboardResource = (params: any, callBack: Function) => {
if(params.opt === 'newLeaf'){// create canvas
const reqeustParams = {
const requestParams = {
...params,
component_data:JSON.stringify(componentData.value),
canvas_style_data:JSON.stringify(canvasStyle.value)
}
dashboardApi.saveCanvas(reqeustParams).then((res: any) => {
dashboardApi.saveCanvas(requestParams).then((res: any) => {
dashboardStore.updateDashboardInfo({id:res.id,dataState:'ready'})
callBack(res)
})
@@ -44,4 +44,4 @@ export const saveDashboardResource = (params: any, callBack: Function) => {
})
}
}
}