中介層 import { Middleware } from '@nuxt/types' const myMiddleware: Middleware = (context) => { // 使用 context } export default myMiddleware