Messing with table creation.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user