diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 1c55419b8..cc935f929 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -394,7 +394,7 @@
{{if and (.IsViewFile) (IpynbBool .TreePath)}}
-
{{end}}
diff --git a/web_src/vuepages/pages/notebook/debug/index.vue b/web_src/vuepages/pages/notebook/debug/index.vue
index 8c73795d1..ae1aa4813 100644
--- a/web_src/vuepages/pages/notebook/debug/index.vue
+++ b/web_src/vuepages/pages/notebook/debug/index.vue
@@ -7,7 +7,10 @@
:close-on-click-modal="false"
@closed="handleClose"
>
-
+
+
+ {{$t('notebook.tips')}}
+
-
- {{$t('notebook.tips')}}
-
+
@@ -221,6 +222,7 @@ export default {
deubgUrlGpu:'',
deubgUrlNpuStop:'',
deubgUrlGpuStop:'',
+ loading:false
};
},
methods: {
@@ -243,14 +245,18 @@ export default {
this.alertCb = false
},
getNotebookInfo(){
+ this.loading = true
getFileNotebook().then((res)=>{
+
if(res.data.code==0){
this.notebookInfo = res.data
}else{
Message.error(res.data.message)
}
+ this.loading = false
}).catch((err)=>{
Message.error(err)
+ this.loading = false
})
},
getCb1NotebookInfo(path,id,index){
@@ -326,7 +332,6 @@ 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`
}
@@ -359,8 +364,6 @@ export default {
clearInterval(timerCb2)
},
mounted() {
- console.log("'asdasd")
- this.getNotebookInfo()
const selfData = document.querySelector('#__vue-self-data')
this.fileInfo.file = selfData.getAttribute('data-file')
this.fileInfo.branch_name = selfData.getAttribute('data-branch')
@@ -370,6 +373,7 @@ export default {
document
.querySelector("#notebook-debug")
.addEventListener("click", function () {
+ that.getNotebookInfo()
that.dialogVisible = true;
});
},
@@ -415,6 +419,14 @@ export default {
);
border-radius: 5px 5px 0px 0px;
}
+ .text-tip{
+ color: #888;
+ font-size: 12px;
+ }
+ .text-tip::before{
+ content: '*';
+ color: #f2711c;
+ }
.alert-info{
width: 70%;
background-color: rgba(242, 113, 28, 0.05);
diff --git a/web_src/vuepages/pages/notebook/debug/vp-notebook-debug.js b/web_src/vuepages/pages/notebook/debug/vp-notebook-debug.js
index b92aef211..522b40992 100644
--- a/web_src/vuepages/pages/notebook/debug/vp-notebook-debug.js
+++ b/web_src/vuepages/pages/notebook/debug/vp-notebook-debug.js
@@ -1,10 +1,11 @@
import Vue from 'vue';
-import {Dialog} from 'element-ui';
+import {Dialog,Loading} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { i18n, lang } from '~/langs';
import App from './index.vue';
Vue.use(Dialog)
+Vue.use(Loading.directive)
new Vue({
i18n,
render: (h) => h(App),