diff --git a/packages/fes-template/.fes.js b/packages/fes-template/.fes.js index 1f2824ba..5321ec62 100644 --- a/packages/fes-template/.fes.js +++ b/packages/fes-template/.fes.js @@ -41,7 +41,7 @@ export default defineBuildConfig({ layout: { title: 'Fes.js', footer: 'Created by MumbleFE', - multiTabs: true, + multiTabs: false, navigation: 'side', theme: 'dark', menus: [ @@ -50,9 +50,6 @@ export default defineBuildConfig({ icon: '/wine-outline.svg', match: ['/route/*'], }, - { - name: 'store', - }, { name: 'editor', icon: '/wine-outline.svg', diff --git a/packages/fes-template/package.json b/packages/fes-template/package.json index b9281fae..dd1fb088 100644 --- a/packages/fes-template/package.json +++ b/packages/fes-template/package.json @@ -58,7 +58,6 @@ "@fesjs/plugin-qiankun": "^3.0.0-rc.0", "@fesjs/plugin-request": "^3.0.0-rc.0", "@fesjs/plugin-sass": "^3.0.0-rc.0", - "@fesjs/plugin-vuex": "^3.0.0-rc.0", "@fesjs/plugin-watermark": "^3.0.0-rc.0", "@fesjs/plugin-windicss": "^3.0.0-rc.0", "@fesjs/plugin-swc": "^3.0.0-rc.0", diff --git a/packages/fes-template/src/app.jsx b/packages/fes-template/src/app.jsx index 3c92de58..f022c455 100644 --- a/packages/fes-template/src/app.jsx +++ b/packages/fes-template/src/app.jsx @@ -19,12 +19,6 @@ export const beforeRender = { }, }; -// export const login = { -// hasLogin() { -// return !!sessionStorage.getItem('login'); -// }, -// }; - export const layout = (layoutConfig, { initialState }) => ({ ...layoutConfig, renderCustom: () => , diff --git a/packages/fes-template/src/pages/index.vue b/packages/fes-template/src/pages/index.vue index 9abfa8b7..fc45bbac 100644 --- a/packages/fes-template/src/pages/index.vue +++ b/packages/fes-template/src/pages/index.vue @@ -1,12 +1,12 @@ 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() {} - } - } - } -};