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

@@ -2,7 +2,7 @@ import axios from 'axios';
export const ScenarioService = { export const ScenarioService = {
getScenarios() { getScenarios() {
return axios.get('http://localhost:8081/scenarios') return axios.get('/scenarios')
} }
} }

View File

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