From aa20111600a40c4d37346b74cbc460831dd41eee Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Sun, 8 Jan 2023 11:52:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/admin_system/src/store/index.js | 24 +++++++++++-------- .../web/admin_system/src/store/modules/app.js | 6 +++-- .../admin_system/src/views/news/NewsEdit.vue | 17 ++++++++++--- 3 files changed, 32 insertions(+), 15 deletions(-) diff --git a/企业级管理系统/web/admin_system/src/store/index.js b/企业级管理系统/web/admin_system/src/store/index.js index 7f5b89c..86bba9c 100644 --- a/企业级管理系统/web/admin_system/src/store/index.js +++ b/企业级管理系统/web/admin_system/src/store/index.js @@ -1,14 +1,18 @@ -import { createStore } from 'vuex' +/* + * @Author: Kane + * @Date: 2022-12-14 15:12:46 + * @LastEditors: Kane + * @LastEditTime: 2023-01-08 11:07:02 + * @FilePath: \admin_system\src\store\index.js + * @Description: + * + * Copyright (c) ${2022} by Kane, All Rights Reserved. + */ +import { createStore } from 'vuex'; +import app from "./modules/app"; export default createStore({ - state: { - }, - getters: { - }, - mutations: { - }, - actions: { - }, modules: { + app, } -}) +}); diff --git a/企业级管理系统/web/admin_system/src/store/modules/app.js b/企业级管理系统/web/admin_system/src/store/modules/app.js index 2ee7d77..d2ab773 100644 --- a/企业级管理系统/web/admin_system/src/store/modules/app.js +++ b/企业级管理系统/web/admin_system/src/store/modules/app.js @@ -2,13 +2,15 @@ * @Author: Kane * @Date: 2023-01-07 22:25:43 * @LastEditors: Kane - * @LastEditTime: 2023-01-07 22:26:51 + * @LastEditTime: 2023-01-08 11:11:07 * @FilePath: \admin_system\src\store\modules\app.js * @Description: app模块 * * Copyright (c) ${2022} by Kane, All Rights Reserved. */ -const state = {}; +const state = { + count: 100, +}; const getters = {}; const mutations = {}; const actions = {}; diff --git a/企业级管理系统/web/admin_system/src/views/news/NewsEdit.vue b/企业级管理系统/web/admin_system/src/views/news/NewsEdit.vue index 07980ff..86e5361 100644 --- a/企业级管理系统/web/admin_system/src/views/news/NewsEdit.vue +++ b/企业级管理系统/web/admin_system/src/views/news/NewsEdit.vue @@ -2,20 +2,31 @@ * @Author: Kane * @Date: 2023-01-06 19:05:53 * @LastEditors: Kane - * @LastEditTime: 2023-01-07 17:12:25 + * @LastEditTime: 2023-01-08 11:18:12 * @FilePath: \admin_system\src\views\news\NewsEdit.vue * @Description: * * Copyright (c) ${2022} by Kane, All Rights Reserved. -->