mirror of
https://codeberg.org/HPCesia/AstralHalo.git
synced 2025-04-08 17:34:27 +08:00
fix: Waline api url
This commit is contained in:
parent
3f443e4e13
commit
fddf19ff43
@ -1,15 +1,12 @@
|
||||
<script>
|
||||
import { asideConfig, commentConfig } from '@/config';
|
||||
import { joinUrl } from '@utils/url-utils';
|
||||
import { cleanCommentHtml, createCommentItem, getTemplate } from './utils.ts';
|
||||
|
||||
async function setup() {
|
||||
const walineConfig = commentConfig.waline!;
|
||||
const commentCount = asideConfig.recentComment.count;
|
||||
const apiUrl = joinUrl(
|
||||
walineConfig.serverURL,
|
||||
`api/comment?type=recent&count=${commentCount}`
|
||||
);
|
||||
const apiUrl = `${walineConfig.serverURL}/api/comment?type=recent&count=${commentCount}`;
|
||||
console.log('apiUrl', apiUrl);
|
||||
|
||||
const response = await fetch(apiUrl, {
|
||||
method: 'GET',
|
||||
|
Loading…
Reference in New Issue
Block a user