|
|
@@ -67,7 +67,7 @@ |
|
|
|
<!-- <span>{{$t('image')}}:{{notebookInfo.imageNpuDescription}}</span> --> |
|
|
|
<div class="select-image"> |
|
|
|
<label>{{$t('image')}}:</label> |
|
|
|
<select @click.stop="" class="select-image-label" v-model="selecedImage" > |
|
|
|
<select @click.stop="" class="select-image-label" v-model="selectedImage" > |
|
|
|
<option v-for="item in npuImageType" :key="item.id" :value="item.value">{{item.value}} </option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
@@ -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 |
|
|
|