保存进度!
This commit is contained in:
		@@ -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({
 | 
					export default createStore({
 | 
				
			||||||
  state: {
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  getters: {
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  mutations: {
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  actions: {
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  modules: {
 | 
					  modules: {
 | 
				
			||||||
 | 
					    app,
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
})
 | 
					});
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,13 +2,15 @@
 | 
				
			|||||||
 * @Author: Kane
 | 
					 * @Author: Kane
 | 
				
			||||||
 * @Date: 2023-01-07 22:25:43
 | 
					 * @Date: 2023-01-07 22:25:43
 | 
				
			||||||
 * @LastEditors: Kane
 | 
					 * @LastEditors: Kane
 | 
				
			||||||
 * @LastEditTime: 2023-01-07 22:26:51
 | 
					 * @LastEditTime: 2023-01-08 11:11:07
 | 
				
			||||||
 * @FilePath: \admin_system\src\store\modules\app.js
 | 
					 * @FilePath: \admin_system\src\store\modules\app.js
 | 
				
			||||||
 * @Description: app模块
 | 
					 * @Description: app模块
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
					 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
const state = {};
 | 
					const state = {
 | 
				
			||||||
 | 
					    count: 100,
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
const getters = {};
 | 
					const getters = {};
 | 
				
			||||||
const mutations = {};
 | 
					const mutations = {};
 | 
				
			||||||
const actions = {};
 | 
					const actions = {};
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,20 +2,31 @@
 | 
				
			|||||||
 * @Author: Kane
 | 
					 * @Author: Kane
 | 
				
			||||||
 * @Date: 2023-01-06 19:05:53
 | 
					 * @Date: 2023-01-06 19:05:53
 | 
				
			||||||
 * @LastEditors: Kane
 | 
					 * @LastEditors: Kane
 | 
				
			||||||
 * @LastEditTime: 2023-01-07 17:12:25
 | 
					 * @LastEditTime: 2023-01-08 11:18:12
 | 
				
			||||||
 * @FilePath: \admin_system\src\views\news\NewsEdit.vue
 | 
					 * @FilePath: \admin_system\src\views\news\NewsEdit.vue
 | 
				
			||||||
 * @Description: 
 | 
					 * @Description: 
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
					 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
				
			||||||
-->
 | 
					-->
 | 
				
			||||||
<template>
 | 
					<template>
 | 
				
			||||||
    信息编辑
 | 
					    信息编辑:{{ getCount }}
 | 
				
			||||||
 | 
					    <br>
 | 
				
			||||||
    <SvgIcon icon="house"></SvgIcon>
 | 
					    <SvgIcon icon="house"></SvgIcon>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
 | 
					import { useStore } from "vuex";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default {
 | 
					export default {
 | 
				
			||||||
    name: "NewsEdit"
 | 
					    name: "NewsEdit",
 | 
				
			||||||
 | 
					    computed: {
 | 
				
			||||||
 | 
					        getCount()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            const store = useStore();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            return store.state.app.count;
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user