pull/4271/head
handsomewu 2024-11-13 19:59:52 +08:00
parent 5fca38611e
commit cddc999614
3 changed files with 6 additions and 3 deletions

View File

@ -42,6 +42,7 @@
</template>
<script>
import { API_URL } from '@/config/APIconfig'
import axios from 'axios'
export default {
@ -64,7 +65,7 @@ export default {
// DELETE
const response = await axios.delete(
`http://localhost:5060/route/del_steer?router=${this.router}`,
API_URL + `/route/del_steer?router=${this.router}`,
{
headers: { 'Content-Type': 'application/json' },
data

View File

@ -24,6 +24,7 @@
</template>
<script>
import { API_URL } from '@/config/APIconfig'
import axios from 'axios'
export default {
@ -45,7 +46,7 @@ export default {
this.loading = true
this.error = null
axios
.get('http://localhost:5060/route/show_paths')
.get(API_URL + '/route/show_paths')
.then((response) => {
// paths
if (response.data && response.data.paths) {

View File

@ -35,6 +35,7 @@
</template>
<script>
import { API_URL } from '@/config/APIconfig'
import axios from 'axios'
export default {
@ -57,7 +58,7 @@ export default {
this.loading = true
this.error = null
axios
.get(`http://localhost:5060/route/show_sid`, { params: { router: this.selectedRouter }})
.get(API_URL + `/route/show_sid`, { params: { router: this.selectedRouter }})
.then((response) => {
if (response.data && response.data.localsids) {
this.sidData = response.data.localsids // SID