前后端登录注册连接成功
Change-Id: Ib5f9282fe7217b3363e542ce5c4e1c0d32619dcb
diff --git a/src/store/index.js b/src/store/index.js
index 7f5b89c..d252e96 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,14 +1,20 @@
-import { createStore } from 'vuex'
-
-export default createStore({
- state: {
- },
- getters: {
- },
- mutations: {
- },
- actions: {
- },
- modules: {
- }
-})
+import { createStore } from 'vuex'
+import auth from './modules/auth'
+
+export default createStore({
+ state: {
+ // 可以为空
+ },
+ getters: {
+ // 可以为空,因为 auth 模块有自己的 getters
+ },
+ mutations: {
+ // 可以为空
+ },
+ actions: {
+ // 可以为空
+ },
+ modules: {
+ auth
+ }
+})
\ No newline at end of file