Skip to content

Frontend Overview

Art Admin frontend is built on art-design-pro 3.0.1, an enterprise-grade admin template.

Tech Stack

TechVersionPurpose
Vue 33.5+<script setup> Composition API
Vite7.xLightning-fast build tool
Element Plus2.xUI component library
TailwindCSS4.xUtility-first CSS
Pinia2.xState management
Axios1.xHTTP client
TypeScript5.xType system

Auto Imports

The following APIs are available without explicit import, handled by unplugin-auto-import:

ts
// Vue core
ref, reactive, computed, watch, watchEffect
onMounted, onUnmounted, nextTick

// Vue Router
useRouter, useRoute

// VueUse
useStorage, useDebounceFn, useThrottleFn

Path Aliases

AliasActual Path
@src/
@viewssrc/views/

Directory Structure

src/
├── api/            # API wrappers
├── assets/         # Static resources
├── components/     # Global components (ArtTable, ArtSearchBar...)
├── composables/    # Composable functions
├── directives/     # Custom directives (v-auth)
├── enums/          # Static enums
├── hooks/          # Core hooks (useTable, useAuth)
├── router/         # Route config
├── store/          # Pinia stores
├── utils/          # Utilities (http, dict...)
└── views/          # Page views

Backend Routing Mode

Important

Art Admin uses backend routing mode — menus are driven by the sys_menu database table. Do not modify frontend static route files (asyncRoutes.ts, routesAlias.ts). New pages must have corresponding sys_menu records.

More Documentation

For general art-design-pro features (themes, layouts, i18n), refer to the official docs: