From 47f89dc67622bc13032a51b733f443e5af5bc538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A7=91=E6=96=87?= <2731938298@qq.com> Date: Sun, 27 Apr 2025 21:44:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B5=8B=E8=AF=952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superMarket-frontend/src/store/index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/superMarket-frontend/src/store/index.js b/superMarket-frontend/src/store/index.js index 129cadb..cd1e007 100644 --- a/superMarket-frontend/src/store/index.js +++ b/superMarket-frontend/src/store/index.js @@ -1,18 +1,29 @@ import Vue from 'vue' +// 导入 Vue 框架 + import Vuex from 'vuex' +// 导入 Vuex 状态管理库 Vue.use(Vuex) +// 注册 Vuex 插件,使其可以在 Vue 中使用 export default new Vuex.Store({ +// 导出一个新的 Vuex.Store 实例 state: { + // 定义状态对象,用于存储全局状态 BaseApi: "http://localhost:9291" + // 定义 BaseApi 属性,存储 API 的基础地址 }, getters: { + // 定义 getters 对象,用于从 state 中派生数据 }, mutations: { + // 定义 mutations 对象,用于同步修改 state }, actions: { + // 定义 actions 对象,用于处理异步操作并提交 mutations }, modules: { + // 定义 modules 对象,用于模块化管理状态 } -}) +}) \ No newline at end of file From 4ee960c4ea3c5be0e0b00e8676dffe4673849123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A7=91=E6=96=87?= <2731938298@qq.com> Date: Mon, 28 Apr 2025 23:12:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 头歌说明记录.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 头歌说明记录.txt diff --git a/头歌说明记录.txt b/头歌说明记录.txt new file mode 100644 index 0000000..8616fdc --- /dev/null +++ b/头歌说明记录.txt @@ -0,0 +1,5 @@ +代码行数记录 +刘科文 4821行 +王佳龙 4932行 +王子祥 4252行 +王兆华 4475行 \ No newline at end of file