diff --git a/web_src/vuepages/pages/notebook/debug/index.vue b/web_src/vuepages/pages/notebook/debug/index.vue index df5231744c..759b765ea3 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,10 @@ export default { if(res.data.code==0){ this.notebookInfo = res.data if (this.activeLoadFirst) { - this.selecedImage = this.notebookInfo.imageNpuDescription[0].value + 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 +393,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 +422,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