feat: 修改url地址,防止307成错误的url地址

This commit is contained in:
jianxiong.cao
2023-09-22 15:11:52 +08:00
parent 43589c66e9
commit 2dc0eca4aa
13 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ const siteForm = reactive<Site>({
// 获取站点列表数据
async function fetchData() {
try {
dataList.value = await api.get('site')
dataList.value = await api.get('site/')
isRefreshed.value = true
}
catch (error) {
@@ -77,7 +77,7 @@ async function addSite() {
addBtnState.value = true
try {
const result: { [key: string]: string } = await api.post('site', siteForm)
const result: { [key: string]: string } = await api.post('site/', siteForm)
if (result.success) {
$toast.success('新增站点成功')