possibly working GUI, compiling missing
This commit is contained in:
@@ -16,11 +16,17 @@ export default {
|
||||
methods: {
|
||||
run() {
|
||||
fetch( 'http://127.0.0.1:8081/api/getEngines' ).then( res => {
|
||||
console.log( res );
|
||||
res.json().then( data => {
|
||||
this.engines = data.body;
|
||||
} );
|
||||
} ).catch( error => {
|
||||
console.log( error );
|
||||
} );
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.run();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user