From 3e8519361f22e1fe67430cef3b462cfbb0b8044f Mon Sep 17 00:00:00 2001 From: a20070322 <1031839775@qq.com> Date: Mon, 4 Mar 2024 17:54:19 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../node/node-layout/project/project-file.vue | 12 ++++++++---- .../pages/node/node-layout/project/project-log.vue | 6 ++++-- .../pages/node/node-layout/system/config-file.vue | 3 ++- web-vue/src/pages/node/node-layout/system/log.vue | 3 ++- web-vue/src/pages/repository/list.vue | 4 ++-- web-vue/src/pages/script/script-console.vue | 5 +++-- web-vue/src/pages/script/script-list.vue | 4 ++-- web-vue/src/pages/script/script-log-view.vue | 3 ++- web-vue/src/pages/ssh/command-view-log.vue | 3 ++- .../pages/system/assets/machine/machine-func.vue | 14 +++++++++----- 10 files changed, 36 insertions(+), 21 deletions(-) diff --git a/web-vue/src/pages/node/node-layout/project/project-file.vue b/web-vue/src/pages/node/node-layout/project/project-file.vue index 9a4624c60..9374ece14 100644 --- a/web-vue/src/pages/node/node-layout/project/project-file.vue +++ b/web-vue/src/pages/node/node-layout/project/project-file.vue @@ -447,16 +447,20 @@ export default { inject: ['globalLoading'], props: { nodeId: { - type: String + type: String, + default: '' }, projectId: { - type: String + type: String, + default: '' }, runMode: { - type: String + type: String, + default: '' }, absPath: { - type: String + type: String, + default: '' } }, emits: ['goReadFile', 'goConsole'], diff --git a/web-vue/src/pages/node/node-layout/project/project-log.vue b/web-vue/src/pages/node/node-layout/project/project-log.vue index 815e53d31..c31cac4c5 100644 --- a/web-vue/src/pages/node/node-layout/project/project-log.vue +++ b/web-vue/src/pages/node/node-layout/project/project-log.vue @@ -68,10 +68,12 @@ import { renderSize, parseTime } from '@/utils/const' export default { props: { nodeId: { - type: String + type: String, + default: '' }, projectId: { - type: String + type: String, + default: '' } }, data() { diff --git a/web-vue/src/pages/node/node-layout/system/config-file.vue b/web-vue/src/pages/node/node-layout/system/config-file.vue index 9668daa03..914554bea 100644 --- a/web-vue/src/pages/node/node-layout/system/config-file.vue +++ b/web-vue/src/pages/node/node-layout/system/config-file.vue @@ -35,7 +35,8 @@ export default { inject: ['globalLoading'], props: { machineId: { - type: String + type: String, + default: '' } }, data() { diff --git a/web-vue/src/pages/node/node-layout/system/log.vue b/web-vue/src/pages/node/node-layout/system/log.vue index 6ecf5b986..71975a355 100644 --- a/web-vue/src/pages/node/node-layout/system/log.vue +++ b/web-vue/src/pages/node/node-layout/system/log.vue @@ -42,7 +42,8 @@ export default { }, props: { machineId: { - type: String + type: String, + default: '' } }, data() { diff --git a/web-vue/src/pages/repository/list.vue b/web-vue/src/pages/repository/list.vue index 7419b9761..3bf0cc61a 100644 --- a/web-vue/src/pages/repository/list.vue +++ b/web-vue/src/pages/repository/list.vue @@ -26,6 +26,7 @@ export default { default: '' } }, + emits: ['confirm'], computed: { ...mapState(useAppStore, ['getWorkspaceId']) }, methods: { confirm(data) { @@ -34,7 +35,6 @@ export default { handerConfirm() { this.$refs.repository.handerConfirm() } - }, - emits: ['confirm'] + } } diff --git a/web-vue/src/pages/script/script-console.vue b/web-vue/src/pages/script/script-console.vue index ff379057d..7d31a6cc3 100644 --- a/web-vue/src/pages/script/script-console.vue +++ b/web-vue/src/pages/script/script-console.vue @@ -80,9 +80,10 @@ export default { }, props: { id: { - type: String + type: String, + default: '' }, - defArgs: { type: String } + defArgs: { type: String, default: '' } }, data() { return { diff --git a/web-vue/src/pages/script/script-list.vue b/web-vue/src/pages/script/script-list.vue index 5184068b7..5a9bf851f 100644 --- a/web-vue/src/pages/script/script-list.vue +++ b/web-vue/src/pages/script/script-list.vue @@ -435,6 +435,7 @@ export default { default: '' } }, + emits: ['cancel', 'confirm'], data() { return { // choose: this.choose, @@ -865,7 +866,6 @@ export default { this.$emit('confirm', `${selectData.id}`) } } - }, - emits: ['cancel', 'confirm'] + } } diff --git a/web-vue/src/pages/script/script-log-view.vue b/web-vue/src/pages/script/script-log-view.vue index ff955ac7a..69d1f07be 100644 --- a/web-vue/src/pages/script/script-log-view.vue +++ b/web-vue/src/pages/script/script-log-view.vue @@ -22,7 +22,8 @@ export default { }, props: { temp: { - type: Object + type: Object, + default: () => ({}) }, visible: { type: Boolean, diff --git a/web-vue/src/pages/ssh/command-view-log.vue b/web-vue/src/pages/ssh/command-view-log.vue index 6162222d8..936b6d664 100644 --- a/web-vue/src/pages/ssh/command-view-log.vue +++ b/web-vue/src/pages/ssh/command-view-log.vue @@ -24,7 +24,8 @@ export default { }, props: { temp: { - type: Object + type: Object, + default: () => ({}) }, height: { type: String, diff --git a/web-vue/src/pages/system/assets/machine/machine-func.vue b/web-vue/src/pages/system/assets/machine/machine-func.vue index bdb873ad5..6ac81c4f1 100644 --- a/web-vue/src/pages/system/assets/machine/machine-func.vue +++ b/web-vue/src/pages/system/assets/machine/machine-func.vue @@ -67,25 +67,29 @@ export default { }, props: { machineId: { - type: String + type: String, + default: '' }, name: { - type: String + type: String, + default: '' }, tab: { type: String, default: '' } }, - computed: { - ...mapState(useAppStore, ['getCollapsed']) - }, emits: ['close'], data() { return { current: this.tab || 'info' } }, + + computed: { + ...mapState(useAppStore, ['getCollapsed']) + }, + mounted() {} }