changes
This commit is contained in:
@@ -11,7 +11,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("Battery", body.value);
|
||||
const newRow = await $insertapi("Battery", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("CPU", body.value);
|
||||
const newRow = await $insertapi("CPU", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("Camera_System", body.value);
|
||||
const newRow = await $insertapi("Camera_System", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("Charging_Technology", body.value);
|
||||
const newRow = await $insertapi("Charging_Technology", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("Color", body.value);
|
||||
const newRow = await $insertapi("Color", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("Design", body.value);
|
||||
const newRow = await $insertapi("Design", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("External_Storage", body.value);
|
||||
const newRow = await $insertapi("External_Storage", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("GPU", body.value);
|
||||
const newRow = await $insertapi("GPU", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("IP_Rating", body.value);
|
||||
const newRow = await $insertapi("IP_Rating", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("Internal_Storage", body.value);
|
||||
const newRow = await $insertapi("Internal_Storage", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("Manufacturer", body.value);
|
||||
const newRow = await $insertapi("Manufacturer", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("Network_Technology", body.value);
|
||||
const newRow = await $insertapi("Network_Technology", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("OS", body.value);
|
||||
const newRow = await $insertapi("OS", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
|
||||
isLoading.value = false;
|
||||
|
||||
@@ -12,7 +12,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("RAM", body.value);
|
||||
const newRow = await $insertapi("RAM", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("SIM", body.value);
|
||||
const newRow = await $insertapi("SIM", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ const body = ref({
|
||||
|
||||
async function submit() {
|
||||
isLoading.value = true;
|
||||
const newRow = await $insertapi("Screen", body.value);
|
||||
const newRow = await $insertapi("Screen", { data: body.value });
|
||||
emit("modalevent", { name: "dataevent", data: newRow });
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user