Unverified Commit 8fc98bb4 authored by hito's avatar hito Committed by GitHub
Browse files

fix: 修复ee版本集群导入和创建问题 (#1581)

parent 80be7045
Showing with 15 additions and 5 deletions
+15 -5
......@@ -12,7 +12,7 @@ const publicImage = window.i18n.t('公共镜像')
const projectImage = window.i18n.t('项目镜像')
const operateAudit = window.i18n.t('操作审计')
const eventQuery = window.i18n.t('事件查询')
const monitor = window.i18n.t('监控中心')
const monitor = window.i18n.t('容器监控')
const release = window.i18n.t('Release列表')
const chart = window.i18n.t('Chart仓库')
const crdcontroller = window.i18n.t('组件库')
......
......@@ -54,7 +54,7 @@ export default {
const data = await deleteCluster({
...params,
operator: ctx.rootState.user?.username
}).catch(() => false)
}).then(() => true).catch(() => false)
return data
},
async retryCluster (ctx, params) {
......@@ -90,7 +90,7 @@ export default {
const data = await deleteClusterNode({
...params,
operator: ctx.rootState.user?.username
}).catch(() => false)
}).then(() => true).catch(() => false)
return data
},
async clusterDetail (ctx, params) {
......
......@@ -80,7 +80,7 @@
</section>
</template>
<script lang="ts">
import { defineComponent, onMounted, ref, computed } from '@vue/composition-api'
import { defineComponent, onMounted, ref, computed, watch } from '@vue/composition-api'
import IpSelector from '@/components/ip-selector/selector-dialog.vue'
import useGoHome from '@/common/use-gohome'
import KeyValue from '@/components/key-value.vue'
......@@ -199,6 +199,11 @@
if (!result) return
confirmDialog.value = true
}
watch(confirmDialog, (value) => {
if (!value) {
createConfirm.value = []
}
})
const curProject = computed(() => {
return $store.state.curProject
})
......
......@@ -75,7 +75,7 @@
</section>
</template>
<script lang="ts">
import { defineComponent, ref, computed, onMounted } from '@vue/composition-api'
import { defineComponent, ref, computed, onMounted, watch } from '@vue/composition-api'
import FormGroup from './form-group.vue'
import Ace from '@/components/ace-editor'
import useGoHome from '@/common/use-gohome'
......@@ -144,6 +144,11 @@
const handleCancel = () => {
$router.back()
}
watch(showImportDialog, (value) => {
if (!value) {
importConfirm.value = []
}
})
const curProject = computed(() => {
return $store.state.curProject
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment