chore: Add debug tool for development mode
All checks were successful
CI / cache-and-install (push) Successful in 1m24s

This commit is contained in:
严浩
2024-08-22 14:31:43 +08:00
parent f5a328d79f
commit 1553ec013e

View File

@ -11,6 +11,7 @@ import { DataLoaderPlugin } from 'unplugin-vue-router/data-loaders';
async function init() {
if (import.meta.env.MODE === 'development' || 1 === 1) {
// TODO: https://github.com/hu3dao/vite-plugin-debug/
// https://eruda.liriliri.io/zh/docs/#快速上手
await import('eruda').then(({ default: eruda }) => {
eruda.init({