mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: first update
This commit is contained in:
@@ -55,7 +55,7 @@ const saveCanvasWithCheck = () => {
|
||||
opt: 'updateLeaf',
|
||||
id: dashboardInfo.value.id,
|
||||
name: dashboardInfo.value.name,
|
||||
pid: dashboardInfo.value.pid,
|
||||
pid: 'root',
|
||||
}
|
||||
saveDashboardResource(updateParams, function () {
|
||||
ElMessage({
|
||||
|
||||
@@ -62,7 +62,12 @@ export const saveDashboardResource = (params: any, callBack: Function) => {
|
||||
canvas_view_info: JSON.stringify(canvasViewInfo.value),
|
||||
}
|
||||
dashboardApi.create_canvas(requestParams).then((res: any) => {
|
||||
dashboardStore.updateDashboardInfo({ id: res.id, name: params.name, dataState: 'ready' })
|
||||
dashboardStore.updateDashboardInfo({
|
||||
id: res.id,
|
||||
pid: params.pid,
|
||||
name: params.name,
|
||||
dataState: 'ready',
|
||||
})
|
||||
callBack(res)
|
||||
})
|
||||
} else if (params.opt === 'newFolder') {
|
||||
|
||||
Reference in New Issue
Block a user