- getCloudAccount:{
- remote (state, cb) {
- return new Promise((resolve, reject) => {
- $.ajax({
- url: 'api/cloud-account?api_server=' +
- API_SERVER,
- type: 'GET',
- beforeSend: Utils.addAuthorizationStub,
- success: function (data) {
- resolve(data);
- if(cb) {
- cb();
- }
- }
- })
- })
- },
- success: Alt.actions.global.getLaunchCloudAccountSuccess,
- error: Alt.actions.global.getLaunchCloudAccountError
- },