first
This commit is contained in:
15
store/index.js
Normal file
15
store/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* 简单的响应式状态管理
|
||||
* 基于 Vue 3 reactive API
|
||||
*/
|
||||
|
||||
import { reactive, ref } from 'vue';
|
||||
import userStore from './modules/user.js';
|
||||
|
||||
// 创建全局状态
|
||||
const globalStore = reactive({
|
||||
user: userStore
|
||||
});
|
||||
|
||||
export default globalStore;
|
||||
export { userStore };
|
||||
Reference in New Issue
Block a user