+
home
- Button
+ Button
diff --git a/packages/fes-template/src/stores/counter.js b/packages/fes-template/src/stores/counter.js
deleted file mode 100644
index 78070ba3..00000000
--- a/packages/fes-template/src/stores/counter.js
+++ /dev/null
@@ -1,23 +0,0 @@
-export default {
- namespaced: true,
- state: () => ({
- count: 0
- }),
- mutations: {
- increment(state) {
- state.count++;
- }
- },
- getters: {
- doubleCount(state) {
- return state.count * 2;
- }
- },
- actions: {
- asyncIncrement({ commit }) {
- setTimeout(() => {
- commit('increment');
- }, 2000);
- }
- }
-};
diff --git a/packages/fes-template/src/stores/foo/bar.js b/packages/fes-template/src/stores/foo/bar.js
deleted file mode 100644
index 78070ba3..00000000
--- a/packages/fes-template/src/stores/foo/bar.js
+++ /dev/null
@@ -1,23 +0,0 @@
-export default {
- namespaced: true,
- state: () => ({
- count: 0
- }),
- mutations: {
- increment(state) {
- state.count++;
- }
- },
- getters: {
- doubleCount(state) {
- return state.count * 2;
- }
- },
- actions: {
- asyncIncrement({ commit }) {
- setTimeout(() => {
- commit('increment');
- }, 2000);
- }
- }
-};
diff --git a/packages/fes-template/src/stores/plugin-loger.js b/packages/fes-template/src/stores/plugin-loger.js
deleted file mode 100644
index 6b8a9826..00000000
--- a/packages/fes-template/src/stores/plugin-loger.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import { createLogger } from 'vuex';
-
-export default createLogger();
diff --git a/packages/fes-template/src/stores/user.js b/packages/fes-template/src/stores/user.js
deleted file mode 100644
index 337bf8f8..00000000
--- a/packages/fes-template/src/stores/user.js
+++ /dev/null
@@ -1,54 +0,0 @@
-export default {
- namespaced: true,
- state: () => ({
- name: 'aring',
- age: 20,
- count: 0
- }),
- mutations: {
- increment(state) {
- state.count++;
- }
- },
- getters: {
- doubleCount(state) {
- return state.count * 2;
- }
- },
- actions: {
- asyncIncrement({ commit }) {
- setTimeout(() => {
- commit('increment');
- }, 2000);
- },
- login() {
- return new Promise((reslove) => {
- setTimeout(() => {
- console.log('login');
- reslove('OK');
- }, 1000);
- });
- }
- },
- modules: {
- address: {
- state: () => ({
- province: '广东省',
- city: '深圳市',
- zone: '南山区'
- }),
- getters: {
- address(state) {
- return state.province + state.city + state.zone;
- }
- }
- },
- posts: {
- namespaced: true,
- state: () => ({}),
- mutations: {
- doSomething() {}
- }
- }
- }
-};