-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: convert src/components/UserChip.vue from class-based to Opt…
…ions/Composition API Summary: The conversion process involved: 1. Replacing the class-based structure with Options API format 2. Moving class properties to data() 3. Moving class methods to methods: {} 4. Moving computed properties to computed: {} 5. Using defineComponent for better TypeScript support 6. Maintaining the lifecycle hook (created) 7. Preserving all functionality and type safety Warnings: The store typing appears to rely on direct state mutation (this..state._user!), which might need attention during a Vue 3 migration. While this works in Vue 2, it's not recommended practice and might cause issues in strict mode or Vue 3.
- Loading branch information
Showing
1 changed file
with
48 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters