Tagged articles
Vuex
23 articles · Page 1 of 1
This comprehensive tutorial introduces Vue.js core APIs—including component creation, reactive data handling, lifecycle hooks, routing, and state management—illustrates their use through e‑commerce cart and social feed examples, and provides performance tips and common pitfalls for front‑end developers.
JavaScriptState ManagementVue.js
0 likes · 25 min read

This article examines whether Pinia or Vuex is required for Vue 3 projects by comparing their features, discussing scenarios such as shared state, devtools, hot‑module replacement, TypeScript support, SSR, and offering simple native alternatives with code examples.
PiniaVuexfrontend
0 likes · 10 min read

This article explains the singleton design pattern, shows standard and lazy implementations in JavaScript with code examples, discusses reducing global variable pollution, and demonstrates practical usage in popular front‑end libraries such as Vuex, Ant Design message, and Axios request cancellation.
AxiosDesign PatternJavaScript
0 likes · 11 min read

This article compiles 29 essential Vue interview questions covering Vue 3 design goals, performance optimizations, component structure, Vuex architecture, routing techniques, Composition vs Options API, and common pitfalls, providing a comprehensive study guide for frontend developers preparing for technical interviews.
InterviewJavaScriptRouting
0 likes · 4 min read

State management, the core of frontend development, involves defining state as data changes, handling asynchronous pre‑state logic, and linking post‑state updates to view rendering, with implementations ranging from framework APIs like React’s setState to reactive proxies in Vue and global stores such as Redux, MobX, and Vuex.
MobXReduxState Management
0 likes · 13 min read

The article details how an e‑commerce product middle platform’s front‑end employs visualization technology, a uni‑render approach that shares a Vuex store between an iframe and its parent via a sandboxed Vue instance, and a qiankun‑based micro‑frontend architecture, while addressing cross‑domain and editor integration challenges.
Vuexe-commercefrontend-architecture
0 likes · 13 min read

This article explains frontend state management concepts, comparing Vuex, an event bus, and web storage solutions, illustrating their usage with code examples, discussing their advantages and limitations, and guiding developers to choose the appropriate approach for their projects.
Event BusVuexWeb Storage
0 likes · 7 min read

The article details vivo Mall’s shift to a multi‑end unified frontend architecture using uni‑app, highlighting how a single technical stack reduces development and maintenance costs, accelerates H5 feature migration to mini‑programs, and introduces innovations such as code conversion tools, conditional compilation, advanced Vuex namespace handling, and component‑page decoupling via @vivo/smartx to meet current and future endpoint demands.
Frontend ArchitectureVuexcode reuse
0 likes · 12 min read

This article walks through a multi‑stage refactoring of Vuex API calls for an IoT project, demonstrating how to separate concerns, create a concise olive‑shaped interface, implement custom isomorphic mappers, and normalize responses with three‑level error handling while keeping the codebase maintainable and scalable.
API RefactoringState ManagementVuex
0 likes · 16 min read

This article walks through three progressive refactoring stages for Vuex‑based API calls—first separating concerns for maintainable code, then introducing a concise “olive‑shaped” interface with dynamic generation or proxy interception, and finally adding response normalization and three‑level error handling to produce robust, low‑maintenance frontend logic.
API RefactoringCode MaintainabilityFrontend Architecture
0 likes · 14 min read

This guide explains how to use Vue Router and Vuex to implement dynamic menu permission control in a Vue-based admin project, covering router splitting, permission module creation, state management, and menu binding to achieve role-based navigation.
Dynamic PermissionsFrontend DevelopmentVue
0 likes · 9 min read


21CTOJan 10, 2020 · Frontend Development
This guide presents a high‑level knowledge map for Vue developers, covering essential JavaScript basics, core Vue concepts, component architecture, SPA routing, state management, real‑world tooling, testing, performance optimization, related ecosystems, and advanced frameworks like Nuxt and Vuetify.
Frontend DevelopmentJavaScriptNuxt
0 likes · 12 min read

Vue.js offers multiple component communication techniques—including one‑way props, $emit/$on events, an event bus, $attrs/$listeners, provide/inject, direct $parent/$children/$refs access, Vuex state management, and slot‑based patterns—enabling flexible data flow between parents, children, siblings, and distant descendants.
$onEmitProps
0 likes · 18 min read


政采云技术Aug 27, 2019 · Frontend Development
This article reviews various Vue.js component communication techniques—including Props, $emit/$on, Vuex, $attrs/$listeners, Provider/Inject, and $parent/$children/$refs—providing explanations, usage scenarios, and code examples to help developers choose the appropriate method for parent-child, sibling, or cross-level data exchange.
Frontend DevelopmentPropsVue.js
0 likes · 12 min read

This article explains the internal mechanism of Vuex by analyzing how state and getter values are injected into Vue components, how they stay reactive through Vue's data system, and how a central event bus can be used for component communication, providing code examples and source‑code analysis.
StateVuexcomponent communication
0 likes · 9 min read

This guide explains how to create a Vue‑based comment system, mount it inside a traditional jQuery page, package it as a UMD library with Vue‑CLI 3.0, manage state with Vuex, integrate Element‑UI components, and extend Axios for JSONP support.
@ComponentAxiosElement UI
0 likes · 9 min read

This tutorial walks through converting a Vue multi‑page project into a server‑side rendered (SSR) setup using Node.js, webpack, and Vue's server‑renderer, covering packaging, data injection, hot‑reloading, and multi‑page deployment.
Hot ReloadVuexmulti-page
0 likes · 13 min read

This article walks through the development of a Vue‑based single‑page application for the JD Car Maintenance project, covering why Vuex was chosen, its core concepts, store implementation, state persistence, cross‑origin handling, Axios/JSONP requests, code refactoring, lazy loading, and component extraction to improve maintainability and performance.
AxiosSPAVue
0 likes · 14 min read

This article explains how to design and implement a Vue.js‑based website builder that lets users create multi‑page sites by dragging modules, covering requirement analysis, JSON data modeling, dynamic component rendering, state management with Vuex, and drag‑and‑drop integration.
Drag-and-DropFrontend ArchitectureJSON data model
0 likes · 14 min read


Aotu LabJul 21, 2017 · Frontend Development
This article details the challenges of integrating dozens of APIs, complex UI interactions, and rapid multi‑version releases in a JD Kids shopping ecosystem, and explains how Vue, Vuex, Webpack, and a series of custom mixins, routing tricks, and constant management strategies were used to create a maintainable, high‑performance single‑page application.
@ComponentMixinSPA
0 likes · 16 min read

Through a detailed source‑code walkthrough, the article explains how Vuex injects the store via a global mixin, builds a hierarchical module tree, binds and implements dispatch and commit methods, enforces strict‑mode mutation checks with a hidden Vue instance, and enables time‑travel debugging by recording mutations and replacing state.
JavaScriptSource Code AnalysisState Management
0 likes · 24 min read

This article explains how to implement server‑side rendering (SSR) for Vue.js applications, covering the underlying concepts, required code setup, Vuex state handling, webpack configuration, and deployment steps to improve SEO for single‑page applications.
SSRServer-Side RenderingVue
0 likes · 14 min read


Aotu LabDec 30, 2016 · Frontend Development
This tutorial walks you through creating a simple timer application with Vue 2.0, Vue‑Router, Vuex and Webpack, highlighting the differences from Vue 1.0, showing project setup, file structure, core code snippets, and best practices for state management.
JavaScriptTutorialVue.js
0 likes · 18 min read
