加入vuex模块!

This commit is contained in:
2023-03-02 00:35:21 +08:00
parent b960ddfa5d
commit 554bb14c36
8 changed files with 4759 additions and 4680 deletions

View File

@@ -1,9 +0,0 @@
/*
* @Author: Kane
* @Date: 2023-03-01 18:23:32
* @LastEditors: Kane
* @FilePath: /deskop_task_schedule/code/web/task_schedule/src/store/index.js
* @Description: vuex配置文件
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/

View File

@@ -0,0 +1,19 @@
/*
* @Author: Kane
* @Date: 2023-03-01 18:23:32
* @LastEditors: Kane
* @FilePath: /task_schedule/src/store/index.ts
* @Description: vuex配置文件
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
import { createStore } from "vuex";
import app from "./modules/app";
const store = createStore({
modules: {
app,
},
});
export default store;

View File

@@ -0,0 +1,24 @@
/*
* @Author: Kane
* @Date: 2023-03-01 23:03:02
* @LastEditors: Kane
* @FilePath: /task_schedule/src/store/modules/app.ts
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
const state = {
staffInfo: null,
};
const getters = {};
const mutations = {};
const actions = {};
export default {
namespaced: true,
state,
getters,
mutations,
actions,
};