adds Key generic parameters, use custom Key type from template.rs
This commit is contained in:
25
web/vue/src/components/Planner.vue
Normal file
25
web/vue/src/components/Planner.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div class="box">
|
||||
<h2 class="subtitle">Week</h2>
|
||||
<button @click="fetchSolution" class="button is-primary">FetchSolution</button>
|
||||
<p>{{ template }}</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Planner',
|
||||
data () {
|
||||
return {
|
||||
template: "",
|
||||
};},
|
||||
methods: {
|
||||
fetchSolution: function() {
|
||||
fetch("http://localhost:8000/api/solver/one")
|
||||
.then((res) => res.json())
|
||||
.then((data) => this.template = data)
|
||||
.catch((err) => console.log(err));
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user