From 81a994b20d229afb378fd6924e83d8ca78dbe061 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 2 Mar 2023 15:16:25 +0800 Subject: [PATCH 1/2] fix issue --- web_src/vuepages/pages/notebook/debug/index.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/web_src/vuepages/pages/notebook/debug/index.vue b/web_src/vuepages/pages/notebook/debug/index.vue index df5231744c..e4a63ca427 100644 --- a/web_src/vuepages/pages/notebook/debug/index.vue +++ b/web_src/vuepages/pages/notebook/debug/index.vue @@ -67,7 +67,7 @@
-
@@ -248,7 +248,7 @@ export default { useUnitPrice: '', useTime: '', - selecedImage:'' + selectedImage:'' }; }, methods: { @@ -295,10 +295,11 @@ export default { if(res.data.code==0){ this.notebookInfo = res.data if (this.activeLoadFirst) { - this.selecedImage = this.notebookInfo.imageNpuDescription[0].value + console.log("-=-=") + this.selectedImage = this.notebookInfo.imageNpuDescription[0].value } - if (new URLSearchParams(window.location.search).has("image")) { - this.selecedImage = new URLSearchParams(window.location.search).get("image") + if (this.activeLoadFirst && new URLSearchParams(window.location.search).has("image")) { + this.selectedImage = new URLSearchParams(window.location.search).get("image") } this.getPointInfo() }else{ @@ -393,7 +394,7 @@ export default { createTask(index){ this.btnStatus[index] = 1 if (index === 2) { - this.fileInfo.image = this.selecedImage + this.fileInfo.image = this.selectedImage } const data = {type:index,...this.fileInfo} let repoPath = `repos/${this.fileInfo.owner_name}/${this.fileInfo.project_name}` @@ -422,7 +423,7 @@ export default { location.href=`${AppSubUrl}/authentication/wechat/bind` } if(err.response.status===401){ - location.href=`${AppSubUrl}/user/login?redirect_to=${encodeURIComponent(location.origin+location.pathname + '?type=login&card='+ this.selectIndex + '&image=' + this.selecedImage) }` + location.href=`${AppSubUrl}/user/login?redirect_to=${encodeURIComponent(location.origin+location.pathname + '?type=login&card='+ this.selectIndex + '&image=' + this.selectedImage) }` return } this.btnStatus[index]=0 -- 2.34.1 From eb16d1b035b27a2f05682e615f6892a63176efca Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 2 Mar 2023 15:17:21 +0800 Subject: [PATCH 2/2] fix issue --- web_src/vuepages/pages/notebook/debug/index.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/web_src/vuepages/pages/notebook/debug/index.vue b/web_src/vuepages/pages/notebook/debug/index.vue index e4a63ca427..759b765ea3 100644 --- a/web_src/vuepages/pages/notebook/debug/index.vue +++ b/web_src/vuepages/pages/notebook/debug/index.vue @@ -295,7 +295,6 @@ export default { if(res.data.code==0){ this.notebookInfo = res.data if (this.activeLoadFirst) { - console.log("-=-=") this.selectedImage = this.notebookInfo.imageNpuDescription[0].value } if (this.activeLoadFirst && new URLSearchParams(window.location.search).has("image")) { -- 2.34.1