changed formatting/qoutes to better match the master (less changes)
This commit is contained in:
parent
7d203b50a3
commit
34218cdc4a
@ -139,11 +139,6 @@ import * as bootstrap from 'bootstrap';
|
|||||||
import BootstrapAlert from "@/components/BootstrapAlert.vue";
|
import BootstrapAlert from "@/components/BootstrapAlert.vue";
|
||||||
import { handleResponse, authHeader } from '@/utils/authentication';
|
import { handleResponse, authHeader } from '@/utils/authentication';
|
||||||
|
|
||||||
declare interface Channel {
|
|
||||||
name: string
|
|
||||||
max_power: number
|
|
||||||
}
|
|
||||||
|
|
||||||
declare interface Inverter {
|
declare interface Inverter {
|
||||||
id: string,
|
id: string,
|
||||||
serial: number,
|
serial: number,
|
||||||
@ -204,8 +199,8 @@ export default defineComponent({
|
|||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("data", jsonData);
|
formData.append("data", jsonData);
|
||||||
|
|
||||||
fetch('/api/inverter/' + endpoint, {
|
fetch("/api/inverter/" + endpoint, {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
headers: authHeader(),
|
headers: authHeader(),
|
||||||
body: formData,
|
body: formData,
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user