Messing with table creation.

This commit is contained in:
iamBadgers
2026-04-14 23:06:12 -07:00
parent f1a280acb6
commit 92064b7187
2 changed files with 24 additions and 30 deletions

View File

@@ -1,11 +1,13 @@
<script setup lang="ts">
import axios from 'axios'
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import InputText from 'primevue/inputtext'
import Button from 'primevue/button'
import Card from 'primevue/card'
import Dropdown from 'primevue/dropdown';
const router = useRouter()
const table_name = ref("Default Table Name")
const table_link = ref("default_table_link")
const version = ref(12)
@@ -15,7 +17,7 @@ const availableVersion = ref([
]);
function saveTable() {
axios.post('http://localhost/api/tables', { "table_name": table_name.value, "table_link": table_link.value, })
axios.post('http://localhost/api/tables', { "table_name": table_name.value, "table_link": table_link.value, "version": version.value }).then(() => router.push({ name: "home" }))
}
</script>