feat: replace require with import 7/n

This commit is contained in:
DIYgod
2024-03-07 01:17:21 +08:00
parent 3d33ab1f72
commit 44c9853541
263 changed files with 629 additions and 567 deletions

View File

@@ -2,7 +2,7 @@ import cache from '@/utils/cache';
import got from '@/utils/got';
import { topicDataHanding, constructTopicEntry } from './utils';
import { load } from 'cheerio';
const dayjs = require('dayjs');
import dayjs from 'dayjs';
const urlRegex = /(https?:\/\/[^\s"'<>]+)/g;