diff --git a/thirdparty/gotty/js/src/webtty.ts b/thirdparty/gotty/js/src/webtty.ts index 1cd79ac3..c765e006 100644 --- a/thirdparty/gotty/js/src/webtty.ts +++ b/thirdparty/gotty/js/src/webtty.ts @@ -117,7 +117,6 @@ export class WebTTY { break; case msgSetReconnect: const autoReconnect = JSON.parse(payload); - console.log("Enabling reconnect: " + autoReconnect + " seconds") this.reconnect = autoReconnect; break; } diff --git a/web/dashboard/src/business/cluster/namespaces/index.vue b/web/dashboard/src/business/cluster/namespaces/index.vue index 03a35c98..199e652b 100644 --- a/web/dashboard/src/business/cluster/namespaces/index.vue +++ b/web/dashboard/src/business/cluster/namespaces/index.vue @@ -148,8 +148,6 @@ export default { listNamespace(this.clusterName, true, this.searchConfig.keywords, this.paginationConfig.currentPage, this.paginationConfig.pageSize).then((res) => { this.data = res.items this.paginationConfig.total = res.total - }).catch(error => { - console.log(error) }).finally(() => { this.loading = false }) diff --git a/web/dashboard/src/business/custom-resource/bak.vue b/web/dashboard/src/business/custom-resource/bak.vue index 78e59915..75f2608f 100644 --- a/web/dashboard/src/business/custom-resource/bak.vue +++ b/web/dashboard/src/business/custom-resource/bak.vue @@ -158,8 +158,7 @@ export default { created () { this.cluster = this.$route.query.cluster this.search() - listApis(this.cluster).then(res => { - console.log(res) + listApis(this.cluster).then(() => { }) } } diff --git a/web/dashboard/src/business/workloads/cronjobs/index.vue b/web/dashboard/src/business/workloads/cronjobs/index.vue index c60be411..c2da34db 100644 --- a/web/dashboard/src/business/workloads/cronjobs/index.vue +++ b/web/dashboard/src/business/workloads/cronjobs/index.vue @@ -174,11 +174,7 @@ export default { .then((res) => { this.data = res.items this.paginationConfig.total = res.total - }) - .catch((error) => { - console.log(error) - }) - .finally(() => { + }).finally(() => { this.loading = false }) }, diff --git a/web/dashboard/src/business/workloads/daemonsets/index.vue b/web/dashboard/src/business/workloads/daemonsets/index.vue index cc4a1b36..360e857e 100644 --- a/web/dashboard/src/business/workloads/daemonsets/index.vue +++ b/web/dashboard/src/business/workloads/daemonsets/index.vue @@ -283,11 +283,7 @@ export default { .then((res) => { this.data = res.items this.paginationConfig.total = res.total - }) - .catch((error) => { - console.log(error) - }) - .finally(() => { + }).finally(() => { this.loading = false }) }, diff --git a/web/dashboard/src/business/workloads/deployments/index.vue b/web/dashboard/src/business/workloads/deployments/index.vue index 2f8dcc0c..8034e8fa 100644 --- a/web/dashboard/src/business/workloads/deployments/index.vue +++ b/web/dashboard/src/business/workloads/deployments/index.vue @@ -345,11 +345,7 @@ export default { .then((res) => { this.data = res.items this.paginationConfig.total = res.total - }) - .catch((error) => { - console.log(error) - }) - .finally(() => { + }).finally(() => { this.loading = false }) }, diff --git a/web/dashboard/src/business/workloads/jobs/index.vue b/web/dashboard/src/business/workloads/jobs/index.vue index a5fd5c4b..c152479e 100644 --- a/web/dashboard/src/business/workloads/jobs/index.vue +++ b/web/dashboard/src/business/workloads/jobs/index.vue @@ -190,11 +190,7 @@ export default { .then((res) => { this.data = res.items this.paginationConfig.total = res.total - }) - .catch((error) => { - console.log(error) - }) - .finally(() => { + }).finally(() => { this.loading = false }) }, diff --git a/web/dashboard/src/business/workloads/pods/index.vue b/web/dashboard/src/business/workloads/pods/index.vue index 590f5893..1b43bee6 100644 --- a/web/dashboard/src/business/workloads/pods/index.vue +++ b/web/dashboard/src/business/workloads/pods/index.vue @@ -295,11 +295,7 @@ export default { item.containers = container } this.paginationConfig.total = res.total - }) - .catch(error => { - console.log(error.message) - }) - .finally(() => { + }).finally(() => { this.loading = false }) }, diff --git a/web/dashboard/src/business/workloads/pods/top/index.vue b/web/dashboard/src/business/workloads/pods/top/index.vue index 1ceee2f0..bd6f2555 100644 --- a/web/dashboard/src/business/workloads/pods/top/index.vue +++ b/web/dashboard/src/business/workloads/pods/top/index.vue @@ -101,10 +101,9 @@ export default { }) this.loading = false }) - .catch((error) => { + .catch(() => { this.showText = true this.loading = false - console.log(error.message) }) }, sortBy(val) { diff --git a/web/dashboard/src/business/workloads/statefulsets/index.vue b/web/dashboard/src/business/workloads/statefulsets/index.vue index 121c1ead..8dbd64de 100644 --- a/web/dashboard/src/business/workloads/statefulsets/index.vue +++ b/web/dashboard/src/business/workloads/statefulsets/index.vue @@ -341,11 +341,7 @@ export default { .then((res) => { this.data = res.items this.paginationConfig.total = res.total - }) - .catch((error) => { - console.log(error) - }) - .finally(() => { + }).finally(() => { this.loading = false }) }, diff --git a/web/dashboard/src/components/HelloWorld.vue b/web/dashboard/src/components/HelloWorld.vue index 5cd91756..5230fae1 100644 --- a/web/dashboard/src/components/HelloWorld.vue +++ b/web/dashboard/src/components/HelloWorld.vue @@ -44,8 +44,6 @@ }, methods: {}, created() { - console.log(model.V1Pod.attributeTypeMap) - console.log(model.V1ObjectMeta.getAttributeTypeMap()) } } diff --git a/web/dashboard/src/components/ko-configuration/ko-secret-data.vue b/web/dashboard/src/components/ko-configuration/ko-secret-data.vue index 244e7d90..cf175089 100644 --- a/web/dashboard/src/components/ko-configuration/ko-secret-data.vue +++ b/web/dashboard/src/components/ko-configuration/ko-secret-data.vue @@ -75,9 +75,6 @@ export default { readFile (file) { const reader = new FileReader() reader.readAsText(file) - reader.onerror = e => { - console.log("error" + e) - } reader.onload = () => { const item = { index: Math.random(), diff --git a/web/dashboard/src/components/ko-workloads/ko-container.vue b/web/dashboard/src/components/ko-workloads/ko-container.vue index 1e391d57..da8b4c88 100644 --- a/web/dashboard/src/components/ko-workloads/ko-container.vue +++ b/web/dashboard/src/components/ko-workloads/ko-container.vue @@ -152,8 +152,8 @@ export default { metadata.annotations["operation"] = this.checked ? "update" : "check" }, changeRepo (repo) { + this.repo.images = [] if (repo === "") { - this.repo.images = [] this.repo.repo = {} this.repo.name = "" return diff --git a/web/dashboard/src/components/ko-workloads/ko-data.vue b/web/dashboard/src/components/ko-workloads/ko-data.vue index 62391eab..9f18d985 100644 --- a/web/dashboard/src/components/ko-workloads/ko-data.vue +++ b/web/dashboard/src/components/ko-workloads/ko-data.vue @@ -68,9 +68,6 @@ export default { readFile(file) { const reader = new FileReader() reader.readAsText(file) - reader.onerror = (e) => { - console.log("error" + e) - } reader.onload = () => { const item = { index: Math.random(), diff --git a/web/dashboard/src/components/yaml-editor/index.vue b/web/dashboard/src/components/yaml-editor/index.vue index 99e4b39c..c9cb1381 100644 --- a/web/dashboard/src/components/yaml-editor/index.vue +++ b/web/dashboard/src/components/yaml-editor/index.vue @@ -107,9 +107,6 @@ export default { readFile (file) { const reader = new FileReader() reader.readAsText(file) - reader.onerror = e => { - console.log("error" + e) - } reader.onload = () => { this.$refs.editor.codemirror.setValue(reader.result) } diff --git a/web/dashboard/src/plugins/request.js b/web/dashboard/src/plugins/request.js index 872173c1..52363a29 100644 --- a/web/dashboard/src/plugins/request.js +++ b/web/dashboard/src/plugins/request.js @@ -40,7 +40,6 @@ instance.interceptors.request.use( return config }, error => { - console.log(error) // for debug return Promise.reject(error) } ) @@ -75,7 +74,6 @@ instance.interceptors.response.use(response => { checkPermission(error.response) msg = error.response.data.message || error.response.data } else { - console.log("error: " + error) msg = error.message } if (error.config.url.indexOf("metrics.k8s.io") < 0 ) { diff --git a/web/dashboard/src/utils/data.js b/web/dashboard/src/utils/data.js index 2d2e1b8e..e1fd1042 100644 --- a/web/dashboard/src/utils/data.js +++ b/web/dashboard/src/utils/data.js @@ -20,5 +20,4 @@ export function isJSON(str) { return false; } } - console.log('It is not a string!') } diff --git a/web/dashboard/src/utils/object.js b/web/dashboard/src/utils/object.js index d0f0abcd..588651d2 100644 --- a/web/dashboard/src/utils/object.js +++ b/web/dashboard/src/utils/object.js @@ -14,8 +14,6 @@ export function get(obj, path) { wrap: false, }); } catch (e) { - console.log('JSON Path error', e, path, obj); // eslint-disable-line no-console - return '(JSON Path err)'; } } diff --git a/web/kubepi/src/business/cluster-management/create/index.vue b/web/kubepi/src/business/cluster-management/create/index.vue index c5c09746..a887b280 100644 --- a/web/kubepi/src/business/cluster-management/create/index.vue +++ b/web/kubepi/src/business/cluster-management/create/index.vue @@ -125,9 +125,6 @@ export default { readFile(file) { const reader = new FileReader() reader.readAsText(file) - reader.onerror = (e) => { - console.log("error" + e) - } reader.onload = () => { this.form.configContent = reader.result } diff --git a/web/kubepi/src/business/cluster-management/detail/roles/cluster/index.vue b/web/kubepi/src/business/cluster-management/detail/roles/cluster/index.vue index f5031af9..cc316afd 100644 --- a/web/kubepi/src/business/cluster-management/detail/roles/cluster/index.vue +++ b/web/kubepi/src/business/cluster-management/detail/roles/cluster/index.vue @@ -244,7 +244,6 @@ export default { } for (const rule of this.detailForm.rules) { for (let i = 0; i < rule.apiGroups.length; i++) { - console.log(rule) if (rule.apiGroups[i] === "") { rule.apiGroups[i] = "core" } diff --git a/web/kubepi/src/business/cluster-management/detail/roles/namespace/index.vue b/web/kubepi/src/business/cluster-management/detail/roles/namespace/index.vue index 9c8983ae..320edc7b 100644 --- a/web/kubepi/src/business/cluster-management/detail/roles/namespace/index.vue +++ b/web/kubepi/src/business/cluster-management/detail/roles/namespace/index.vue @@ -236,7 +236,6 @@ export default { } for (const rule of this.detailForm.rules) { for (let i = 0; i < rule.apiGroups.length; i++) { - console.log(rule) if (rule.apiGroups[i] === "") { rule.apiGroups[i] = "core" } diff --git a/web/kubepi/src/plugins/request.js b/web/kubepi/src/plugins/request.js index 3a305c02..4a230739 100644 --- a/web/kubepi/src/plugins/request.js +++ b/web/kubepi/src/plugins/request.js @@ -16,7 +16,6 @@ instance.interceptors.request.use( return config }, error => { - console.log(error) // for debug return Promise.reject(error) } )