refactor(adminui): remove tenant admin flows and fix build
This commit is contained in:
@@ -15,9 +15,15 @@ const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = dirname(__filename)
|
||||
|
||||
// 读取 .auto-import.json 文件的内容,并将其解析为 JSON 对象
|
||||
const autoImportConfig = JSON.parse(
|
||||
fs.readFileSync(path.resolve(__dirname, '.auto-import.json'), 'utf-8')
|
||||
)
|
||||
// 说明:该文件由 unplugin-auto-import 在 Vite 启动时生成,首次安装依赖后可能尚未生成
|
||||
let autoImportConfig = { globals: {} }
|
||||
try {
|
||||
autoImportConfig = JSON.parse(
|
||||
fs.readFileSync(path.resolve(__dirname, '.auto-import.json'), 'utf-8')
|
||||
)
|
||||
} catch {
|
||||
autoImportConfig = { globals: {} }
|
||||
}
|
||||
|
||||
export default [
|
||||
// 指定文件匹配规则
|
||||
|
||||
Reference in New Issue
Block a user