diff --git a/src/store/modules/search/searchConfig.js b/src/store/modules/search/searchConfig.js index ce103e4..595ccef 100644 --- a/src/store/modules/search/searchConfig.js +++ b/src/store/modules/search/searchConfig.js @@ -1,4 +1,5 @@ -import * as api from '@/api/system/notify.js'; +import * as api from '@/api/search/config.js'; +import * as systemAPI from '@/api/search/system.js'; import { ElMessage, ElMessageBox } from '@/plugins/element-plus'; const state = () => ({ code: 'SearchConfig', @@ -7,6 +8,7 @@ const state = () => ({ total: 0, opts: { init: false, + system: [], }, }); const getters = {}; @@ -32,6 +34,7 @@ const actions = { commit('setOpts', { ...state.opts, init: true, + system: (await systemAPI.search({ pageIndex: 1, length: 99999 }))?.records || [], }); }, detail: async (context, id) => { diff --git a/src/store/modules/search/searchSystem.js b/src/store/modules/search/searchSystem.js index 1ace0e9..df1e3ff 100644 --- a/src/store/modules/search/searchSystem.js +++ b/src/store/modules/search/searchSystem.js @@ -1,4 +1,4 @@ -import * as api from '@/api/system/notify.js'; +import * as api from '@/api/search/system.js'; import { ElMessage, ElMessageBox } from '@/plugins/element-plus'; const state = () => ({ code: 'SearchSystem', diff --git a/src/views/search/search/index.vue b/src/views/search/config/index.vue similarity index 90% rename from src/views/search/search/index.vue rename to src/views/search/config/index.vue index 0584b6c..2015d39 100644 --- a/src/views/search/search/index.vue +++ b/src/views/search/config/index.vue @@ -15,12 +15,16 @@ > - - - - - - - -