|
|
@ -93,13 +93,12 @@ export default class LCCScript implements LCC { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
saveAndSyncScripts(scriptList: { name: string; content: string }[]): Promise<ServerResponse<{ name: string; content: string }[]>> { |
|
|
saveAndSyncScripts(scriptList: { name: string; content: string }[]): Promise<ServerResponse<{ name: string; content: string }[]>> { |
|
|
if (!worldModel.state.project_uuid || !worldModel.state.runState.currentEnvId) { |
|
|
if (!worldModel.state.project_uuid) { |
|
|
return Promise.reject(new Error('Project UUID or Environment ID is not set.')) |
|
|
return Promise.reject(new Error('Project UUID or Environment ID is not set.')) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return Request.request.post('/api/workbench/LccController@saveAndSyncScripts', { |
|
|
return Request.request.post('/api/workbench/LccController@saveAndSyncScripts', { |
|
|
projectUUID: worldModel.state.project_uuid, |
|
|
projectUUID: worldModel.state.project_uuid, |
|
|
envId: worldModel.state.runState.currentEnvId, |
|
|
|
|
|
scriptList: scriptList |
|
|
scriptList: scriptList |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|