File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 303303 */
304304 store () {
305305 this .persistClient (
306- ' post' , ' /oauth/clients' ,
307- this .createForm , ' #modal-create-client'
306+ ' post' ,
307+ ' /oauth/clients' ,
308+ this .createForm ,
309+ ' #modal-create-client'
308310 );
309311 },
310312
324326 */
325327 update () {
326328 this .persistClient (
327- ' put' , ' /oauth/clients/' + this .editForm .id ,
328- this .editForm , ' #modal-edit-client'
329+ ' put' ,
330+ ' /oauth/clients/' + this .editForm .id ,
331+ this .editForm ,
332+ ' #modal-edit-client'
329333 );
330334 },
331335
337341
338342 axios[method](uri, form)
339343 .then (response => {
340- this .clients .push (response .data );
344+ if (method === ' post' ) {
345+ this .clients .push (response .data );
346+ } else {
347+ this .getClients ();
348+ }
341349
342350 form .name = ' ' ;
343351 form .redirect = ' ' ;
You can’t perform that action at this time.
0 commit comments