up
This commit is contained in:
+3
-2
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios'
|
||||
|
||||
// Go 搜索服务器地址(端口 80,带 CORS)
|
||||
const BASE = import.meta.env.VITE_API_BASE || 'http://localhost:80'
|
||||
// 相对路径(由同源 Go 搜索服务器提供),不指定端口
|
||||
const BASE = ''
|
||||
|
||||
export async function fetchRecent(limit = 50) {
|
||||
const { data } = await axios.get(`${BASE}/admin/recent`, {
|
||||
@@ -46,3 +46,4 @@ export async function flushIndex() {
|
||||
})
|
||||
return data
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
|
||||
const BASE = 'http://localhost'
|
||||
const BASE = ''
|
||||
const PAGE_SIZE = 10
|
||||
|
||||
const query = ref('')
|
||||
|
||||
Reference in New Issue
Block a user