加入vuex模块!
This commit is contained in:
@@ -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.
|
||||
*/
|
19
code/web/task_schedule/src/store/index.ts
Normal file
19
code/web/task_schedule/src/store/index.ts
Normal 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;
|
24
code/web/task_schedule/src/store/modules/app.ts
Normal file
24
code/web/task_schedule/src/store/modules/app.ts
Normal 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,
|
||||
};
|
Reference in New Issue
Block a user