Compare commits
4 Commits
0a78c4ee19
...
82b77876a8
Author | SHA1 | Date | |
---|---|---|---|
82b77876a8 | |||
|
5ca85841e7 | ||
|
8c651108c4 | ||
|
d44176f86c |
@ -44,9 +44,7 @@ export default {
|
|||||||
let h = context.rootGetters.headers;
|
let h = context.rootGetters.headers;
|
||||||
h.headers["content-type"] = "multipart/form-data";
|
h.headers["content-type"] = "multipart/form-data";
|
||||||
axios.put(context.rootGetters.server + "/api/radios/" + radio._id + "/cover", formData, h).then((res) => {
|
axios.put(context.rootGetters.server + "/api/radios/" + radio._id + "/cover", formData, h).then((res) => {
|
||||||
radio.cover32 = res.data.cover32;
|
radio.covers = res.data.covers;
|
||||||
radio.cover64 = res.data.cover64;
|
|
||||||
radio.cover128 = res.data.cover128;
|
|
||||||
context.dispatch("loadRadios", true);
|
context.dispatch("loadRadios", true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user