Update 2 files

- /src/service/ScenarioService.js
- /src/views/pages/ScenarioExec.vue
This commit is contained in:
Administrator
2024-08-08 10:14:08 +00:00
parent 3a95228ea7
commit acc5771bbf
2 changed files with 4 additions and 4 deletions

View File

@@ -128,7 +128,7 @@ onMounted(() => {
loading.value = true
const id = route.params.id;
console.log(id)
axios.get('http://localhost:8081/scenarios/' + id )
axios.get('/scenarios/' + id )
.then(response => {
console.log(response);
loading.value = false
@@ -160,7 +160,7 @@ onMounted(() => {
console.log(data);
axios.post('http://localhost:8081/scenarios/execute', data)
axios.post('/scenarios/execute', data)
.then(response => {
loading_data.value = false;
data_loaded.value = true;
@@ -180,7 +180,7 @@ onMounted(() => {
const openDebug = () => {
console.log("exec_id", exec_id.value)
axios.get('http://localhost:8081/scenarios/execute/'+ exec_id.value).then(resp =>{
axios.get('/scenarios/execute/'+ exec_id.value).then(resp =>{
exec_scenario.value = resp.data
console.log(exec_scenario.value)