change
parent
5fca38611e
commit
cddc999614
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 数据
|
||||
|
|
Loading…
Reference in New Issue