diff --git a/0001-fix-clear-host-group_id-after-selected-cluster.patch b/0001-fix-clear-host-group_id-after-selected-cluster.patch deleted file mode 100644 index 70d5f91..0000000 --- a/0001-fix-clear-host-group_id-after-selected-cluster.patch +++ /dev/null @@ -1,179 +0,0 @@ -From 2e5e459a8aabc563f4d6a51c7927d49c2c12af9d Mon Sep 17 00:00:00 2001 -From: hugang <18768366022@163.com> -Date: Tue, 23 Jul 2024 15:01:34 +0800 -Subject: [PATCH] fix: clear host group_id after selected cluster - ---- - .gitignore | 3 +- - package.json | 3 + - src/views/assests/HostEdition.vue | 7 ++- - .../assests/components/AddMoreHostModal.vue | 10 ++- - vite.config.ts | 61 +++++++++++++------ - 5 files changed, 62 insertions(+), 22 deletions(-) - -diff --git a/.gitignore b/.gitignore -index 7b79c41..dc8bf4e 100644 ---- a/.gitignore -+++ b/.gitignore -@@ -6,4 +6,5 @@ dist - .idea - .vscode - src/typings --pnpm-lock.yaml -\ No newline at end of file -+pnpm-lock.yaml -+stats.html -diff --git a/package.json b/package.json -index 6248d04..0f71172 100644 ---- a/package.json -+++ b/package.json -@@ -39,9 +39,12 @@ - "@types/nprogress": "^0.2.3", - "@vitejs/plugin-vue": "^2.3.4", - "@vue/compiler-sfc": "^3.3.0", -+ "esbuild-linux-64": "0.14.54", -+ "esbuild-linux-arm64": "0.14.54", - "eslint": "^8.56.0", - "less": "^4.2.0", - "mockjs": "^1.1.0", -+ "rollup-plugin-visualizer": "^5.12.0", - "typescript": "^4.5.5", - "vite": "^2.9.18", - "vite-plugin-mock": "^2.0.1", -diff --git a/src/views/assests/HostEdition.vue b/src/views/assests/HostEdition.vue -index b67c56f..2f72ead 100644 ---- a/src/views/assests/HostEdition.vue -+++ b/src/views/assests/HostEdition.vue -@@ -306,7 +306,12 @@ onMounted(() => { - - - -- -+ - = { - selectedCluster: [{ required: true, message: '请选择集群', trigger: 'change' }], - } - --const { clusters } = storeToRefs(useClusterStore()) -+const { permissions } = storeToRefs(useClusterStore()) -+ -+const clusterOptions = computed(() => -+ permissions.value.map(({ cluster_id, cluster_name }) => ({ cluster_id, cluster_name })), -+) - - const modalState = reactive({ - visible: false, -@@ -308,7 +312,7 @@ function handleEdit(key: string) { - placeholder="请选择集群" - style="width: 300px" - > --