adds Key generic parameters, use custom Key type from template.rs

This commit is contained in:
2019-02-10 14:43:18 +01:00
parent 29b2f076bf
commit 2f3993bb9e
11 changed files with 241 additions and 279 deletions

View 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>