mirror of https://github.com/jumpserver/jumpserver
perf: 去掉 js 报错
parent
2782d4b5f1
commit
c0273dc698
|
@ -17,7 +17,7 @@ LOGGING = {
|
|||
'disable_existing_loggers': False,
|
||||
'formatters': {
|
||||
'verbose': {
|
||||
'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
|
||||
'format': '%(levelname)s %(asctime)s %(pathname)s:%(lineno)d %(message)s'
|
||||
},
|
||||
'main': {
|
||||
'datefmt': '%Y-%m-%d %H:%M:%S',
|
||||
|
|
|
@ -42,7 +42,10 @@
|
|||
$.fn.select2.defaults.set('language', getUserLang())
|
||||
const md = window.markdownit();
|
||||
const markdownContent = document.querySelector('script[type="text/markdown"]').textContent;
|
||||
document.getElementById('markdown-output').innerHTML = md.render(markdownContent);
|
||||
const markdownRef = document.getElementById('markdown-output')
|
||||
if (markdownRef) {
|
||||
markdownRef.innerHTML = md.render(markdownContent);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue