diff --git a/src/layouts/home.vue b/src/layouts/home.vue index 083d3b4..7dbbd79 100644 --- a/src/layouts/home.vue +++ b/src/layouts/home.vue @@ -7,11 +7,6 @@ -
- - - -
@@ -136,10 +131,6 @@ export default { function setTime() { store.commit('SET_OPERATETIME') } - const selectPostion = ref('') - const SET_SELECTED_POSITION = () => { - store.commit('SET_SELECTED_POSITION', selectPostion.value) - } return { isCollapsed: computed(() => store.state.app.isCollapsed), basePath: computed(() => store.state.app.basePath), @@ -151,9 +142,7 @@ export default { showSidebar, thirdMenuData, toggleCollapsed, - setTime, - selectPostion, - SET_SELECTED_POSITION + setTime } }, methods: { diff --git a/src/store/modules/position.js b/src/store/modules/position.js deleted file mode 100644 index d4c703c..0000000 --- a/src/store/modules/position.js +++ /dev/null @@ -1,36 +0,0 @@ -import { getSystemConfigs } from 'services' - -const state = { - // 是否主阵地 - isMainPosition: true, - // 阵地列表 - positionList: [ - { name: '主阵地', id: 1 }, - { name: '子阵地 1', id: 2 } - ], - selectedPostion: '' -} -const mutations = { - SET_SELECTED_POSITION(state, value) { - state.selectedPostion = value - }, - SET_IS_MAIN_POSITION(state, value) { - state.isMainPosition = value - }, - SET_POSITION_LIST(state, value) { - state.positionList = value - } -} -const actions = { - async GetPostionList({ commit }) { - const data = await getSystemConfigs({ codes: 'pwdStrength,lockScreenTime' }) - if (data.success) { - commit('SET_POSITION_LIST', data.data) - } - } -} -export default { - state, - mutations, - actions -} diff --git a/src/views/login/login.vue b/src/views/login/login.vue index 50d0ea8..bc797d6 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -16,47 +16,51 @@