This commit is contained in:
2026-04-08 21:50:14 +08:00
parent d3e7ae5724
commit 95a03de80c
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
import axios from 'axios' import axios from 'axios'
// Go 搜索服务器地址(端口 80,带 CORS) // 相对路径(由同源 Go 搜索服务器提供),不指定端口
const BASE = import.meta.env.VITE_API_BASE || 'http://localhost:80' const BASE = ''
export async function fetchRecent(limit = 50) { export async function fetchRecent(limit = 50) {
const { data } = await axios.get(`${BASE}/admin/recent`, { const { data } = await axios.get(`${BASE}/admin/recent`, {
@@ -46,3 +46,4 @@ export async function flushIndex() {
}) })
return data return data
} }
+1 -1
View File
@@ -1,7 +1,7 @@
<script setup> <script setup>
import { ref } from 'vue' import { ref } from 'vue'
const BASE = 'http://localhost' const BASE = ''
const PAGE_SIZE = 10 const PAGE_SIZE = 10
const query = ref('') const query = ref('')