fix: 补充apiKey认证
This commit is contained in:
@ -118,10 +118,11 @@ export default defineEndpoint({
|
||||
if (meiliConfigs.length === 0) {
|
||||
return res.status(500).json({ success: false, message: 'MeiliSearch 全局配置未设置' });
|
||||
}
|
||||
const { host } = meiliConfigs[0] || { host: '', apiKey: '' };
|
||||
const { host, apiKey } = meiliConfigs[0] || { host: '', apiKey: '' };
|
||||
|
||||
const client = new MeiliSearch({
|
||||
host,
|
||||
apiKey,
|
||||
})
|
||||
const result: any[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user