fix: import RAP1 error

pull/721/head
yangshifang 4 years ago
parent 0c0be4ad93
commit dfe68e69cb

@ -487,10 +487,10 @@ export default class MigrateService {
domain = 'http://' + domain
}
domain = domain.substring(0, domain.indexOf('/', domain.indexOf('.')))
let result = await rp(`${domain}/api/queryRAPModel.do?projectId=${projectId}`, {
let response = await rp(`${domain}/api/queryRAPModel.do?projectId=${projectId}`, {
json: false,
})
result = JSON.parse(result)
result = JSON.parse(response)
// result = unescape(result.modelJSON)
result = result.modelJSON

Loading…
Cancel
Save