How zhao-001225/ruoyi-app works
RuoYi App is a UniApp mobile client for RuoYi backends, with cross-platform login, account/profile management, and a workbench. The main flow initializes the client, gates access on a token, authenticates through the API, and stores user identity and permissions for later use. The tree and excerpts also establish registration, dictionary access, profile/avatar updates, and shared upload/request helpers. Other account pages and workbench capabilities are preserved from the README and tree; unsampled page-level calls are not inferred.
Main entry points: user.js User state · index.js Vuex store · request.js HTTP client · main.js Client registration
Components 30
App entry
- App initialization
App.vue - Client registration
main.js - Home page
pages/index.vue
Identity and access
- Login and registration
pages/login.vue - Route permission
permission.js - Token storage
utils/auth.js - User state
store/modules/user.js - Vuex store
store/index.js - Role permissions
plugins/auth.js - Identity storage
utils/storage.js
Account features
- My account
pages/mine/index.vue - Avatar update
pages/mine/avatar/index.vue - Profile editing
pages/mine/info/edit.vue - Password change
pages/mine/pwd/index.vue - Account settings
pages/mine/setting/index.vue - Help and about
pages/mine/help/index.vue - About page
pages/mine/about/index.vue - Workbench
pages/work/index.vue
Backend services
- Authentication API
api/login.js - HTTP client
utils/request.js - Dictionary API
api/system/dict/data.js - User API
api/system/user.js - Upload service
utils/upload.js
UI components
- File selection
uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue - Choose and upload
uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js - Date-time picker
uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue - Calendar view
uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue - Time picker
uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue
Other components
- Mobile user
- RuoYi backend
Connections 24
- Mobile user → Login and registration: submits credentials
README.md - App initialization → Token storage: checks token
App.vue - App initialization → Login and registration: redirects unauthenticated
App.vue - Client registration → Vuex store: registers store
main.js - Client registration → Route permission: loads guard
main.js - Client registration → Dictionary API: exposes dictionary lookup
main.js - Route permission → Token storage: checks token
permission.js - User state → Authentication API: calls authentication
store/modules/user.js - User state → Token storage: stores token
store/modules/user.js - User state → Identity storage: persists identity
store/modules/user.js - Vuex store → User state: registers module
store/index.js - Role permissions → Vuex store: reads permissions
plugins/auth.js - Authentication API → HTTP client: sends API requests
api/login.js - Dictionary API → HTTP client: sends API requests
api/system/dict/data.js - User API → HTTP client: sends API requests
api/system/user.js - User API → Upload service: delegates uploads
api/system/user.js - HTTP client → RuoYi backend: calls endpoints
- Mobile user → My account: opens account
README.md - Mobile user → Workbench: opens workbench
README.md - Avatar update → User API: updates avatar
pages/mine/avatar/index.vue - Avatar update → Vuex store: reads account state
pages/mine/avatar/index.vue - File selection → Choose and upload: delegates selection
uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue - Date-time picker → Calendar view: renders calendar
uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue - Date-time picker → Time picker: renders time picker
uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue