diff --git a/web/src/store/modules/app/index.ts b/web/src/store/modules/app/index.ts index 83b2a47..4d86481 100644 --- a/web/src/store/modules/app/index.ts +++ b/web/src/store/modules/app/index.ts @@ -54,11 +54,9 @@ const actions: ActionTree = { }, } -const app: Module = { +export default >{ namespaced: true, state, mutations, actions, } - -export default app diff --git a/web/src/store/modules/permission/index.ts b/web/src/store/modules/permission/index.ts index 9f45083..4c58f14 100644 --- a/web/src/store/modules/permission/index.ts +++ b/web/src/store/modules/permission/index.ts @@ -73,11 +73,9 @@ const actions: ActionTree = { }, } -const permission: Module = { +export default >{ namespaced: true, state, mutations, actions, } - -export default permission diff --git a/web/src/store/modules/setting/index.ts b/web/src/store/modules/setting/index.ts index c5aa846..69bb75c 100644 --- a/web/src/store/modules/setting/index.ts +++ b/web/src/store/modules/setting/index.ts @@ -6,9 +6,7 @@ const state: SettingState = { fixedHeader: false, } -const setting: Module = { +export default >{ namespaced: true, state, } - -export default setting diff --git a/web/src/store/modules/tagsView/index.ts b/web/src/store/modules/tagsView/index.ts index c8dc644..6f4a194 100644 --- a/web/src/store/modules/tagsView/index.ts +++ b/web/src/store/modules/tagsView/index.ts @@ -159,11 +159,9 @@ const actions: ActionTree = { }, } -const tagsView: Module = { +export default >{ namespaced: true, state, mutations, actions, } - -export default tagsView diff --git a/web/src/store/modules/user/index.ts b/web/src/store/modules/user/index.ts index d97e2e7..d3fa8b3 100644 --- a/web/src/store/modules/user/index.ts +++ b/web/src/store/modules/user/index.ts @@ -85,11 +85,9 @@ const actions: ActionTree = { }, } -const setting: Module = { +export default >{ namespaced: true, state, mutations, actions, } - -export default setting diff --git a/web/src/store/modules/websocket/index.ts b/web/src/store/modules/websocket/index.ts index 72b0f6a..2721466 100644 --- a/web/src/store/modules/websocket/index.ts +++ b/web/src/store/modules/websocket/index.ts @@ -126,11 +126,9 @@ const actions: ActionTree = { }, } -const setting: Module = { +export default >{ namespaced: true, state, mutations, actions, } - -export default setting diff --git a/web/src/views/deploy/index.vue b/web/src/views/deploy/index.vue index 4b26a60..1896ed0 100644 --- a/web/src/views/deploy/index.vue +++ b/web/src/views/deploy/index.vue @@ -171,7 +171,7 @@ trigger="click" type="primary" @click="publish(scope.row)" - @command="(funcName) => callCommandFunc(funcName, scope.row)" + @command="(funcName) => commandFunc[funcName](scope.row)" > {{ role.isMember() && scope.row.review === 1 @@ -200,7 +200,7 @@ v-if="role.hasGroupManagerPermission() || scope.row.review === 1" trigger="click" style="margin-left: 5px" - @command="(funcName) => callCommandFunc(funcName, scope.row)" + @command="(funcName) => commandFunc[funcName](scope.row)" > {{ $t('func') }} @@ -343,7 +343,9 @@ + diff --git a/web/src/views/monitor/index.vue b/web/src/views/monitor/index.vue index 4d3791c..dc5140d 100644 --- a/web/src/views/monitor/index.vue +++ b/web/src/views/monitor/index.vue @@ -290,7 +290,7 @@ const formRules = ['rules']>{ } watch( - () => store.getters.ws_message, + () => store.state.websocket.message, function (response) { if (response.type !== 3) { return