Browse Source

fix issue

tags/v1.22.11.3^2
zhoupzh 3 years ago
parent
commit
5b209355c8
3 changed files with 11 additions and 3 deletions
  1. +1
    -0
      web_src/vuepages/langs/config/en-US.js
  2. +1
    -0
      web_src/vuepages/langs/config/zh-CN.js
  3. +9
    -3
      web_src/vuepages/pages/notebook/debug/index.vue

+ 1
- 0
web_src/vuepages/langs/config/en-US.js View File

@@ -219,6 +219,7 @@ const en = {
graphicMemory: "Graphic Memory",
memory: "Memory",
sharedMemory: "Shared Memory",
tips:'The newly created debugging task will be placed in the project openi-notebook under your name. If there is no such project, the system will automatically create a new one.'
},
}



+ 1
- 0
web_src/vuepages/langs/config/zh-CN.js View File

@@ -220,6 +220,7 @@ const zh = {
graphicMemory: "显存",
memory: "内存",
sharedMemory: "共享内存",
tips:'本次新建的调试任务会放在您名下项目openi-notebook中,如果没有该项目系统会自动新建一个。'
},
};



+ 9
- 3
web_src/vuepages/pages/notebook/debug/index.vue View File

@@ -166,6 +166,10 @@
<button class="ui disabled small button" style="background-color: #888;"><i class="loading spinner icon" style="color: #fff;"></i>{{$t('notebook.stopping')}}</button>
</div>
</div>
</div>
<div style="text-align: right;padding-bottom: 12px;">
<span style="color: #f2711c;font-size: 12px;">{{$t('notebook.tips')}}</span>
</div>
</div>
</el-dialog>
@@ -314,9 +318,6 @@ export default {
}
this.alertCb = false
}else if(res.data.code===1 && res.status===403){
this.btnStatus[index]=0
}else if(res.data.code==2){
this.btnStatus[index]=0
this.alertCb = true
@@ -325,6 +326,10 @@ export default {
Message.error(res.data.message)
}
}).catch((err)=>{
console.log("------",err,err.response)
if(err.response.status===403 && err.response.data.code===1 ){
location.href=`${AppSubUrl}/authentication/wechat/bind`
}
this.btnStatus[index]=0
this.alertCb = false
Message.error(err)
@@ -354,6 +359,7 @@ export default {
clearInterval(timerCb2)
},
mounted() {
console.log("'asdasd")
this.getNotebookInfo()
const selfData = document.querySelector('#__vue-self-data')
this.fileInfo.file = selfData.getAttribute('data-file')


Loading…
Cancel
Save