feat: replace require with import 1/n

This commit is contained in:
DIYgod
2024-03-06 23:39:15 +08:00
parent 7a8335ee1e
commit 156b58d780
659 changed files with 1627 additions and 2338 deletions

View File

@@ -1,5 +1,5 @@
const dayjs = require('dayjs');
const { constructTopicEntry } = require('./utils');
import { constructTopicEntry } from './utils';
export default async (ctx) => {
const id = ctx.req.param('id');