mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: typos
This commit is contained in:
@@ -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) => {
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user