link137 link138 link139 link140 link141 link142 link143 link144 link145 link146 link147 link148 link149 link150 link151 link152 link153 link154 link155 link156 link157 link158 link159 link160 link161 link162 link163 link164 link165 link166 link167 link168 link169 link170 link171 link172 link173 link174 link175 link176 link177 link178 link179 link180 link181 link182 link183 link184 link185 link186 link187 link188 link189 link190 link191 link192 link193 link194 link195 link196 link197 link198 link199 link200 link201 link202 link203 link204 link205 link206 link207 link208 link209 link210 link211 link212 link213 link214 link215 link216 link217 link218 link219 link220 link221 link222 link223 link224 link225 link226 link227 link228 link229 link230 link231 link232 link233 link234 link235 link236 link237 link238 link239 link240 link241 link242 link243 link244 link245 link246 link247 link248 link249 link250 link251 link252 link253 link254 link255 link256 link257 link258 link259 link260 link261 link262 link263 link264 link265 link266 link267 link268 link269 link270 link271 link272 link273

[Vue.js] catching response of post request after post's succeeded

when creating a post request and it’s executing successfully and I can see that response in the network tab.

when trying to store that response so that I can use that further ahead, but when not able to do so. I don’t exactly know how can I store that response, can anyone guide me about that?

there is created a post like below sample and I was trying to put .then after but I think it just hadn’t worked for me.

const current = api();

Solution :

As I do not know what’s the current stack for managing XHR requests, I make a general example supposing the abstraction returns a promise:

const current = api();

getAPI = async () => {
let res = await`/sampleUrl`,formData);
let { data } = await;
console.log(data); // logs the response

Solution 2:

Which module are you using for POST requests?

In request this saves the response. This might do it for you.

const request = require(“request”);
const response =;