Skip to content

Commit

Permalink
优化控制台配置加载
Browse files Browse the repository at this point in the history
控制台手动任务未配置线程自动置为1
  • Loading branch information
miyouzi committed Oct 1, 2022
1 parent 7226089 commit 4242af8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Dashboard/Server.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ def manual_task():
mode = data['mode']

# 下载线程数
thread = int(data['thread'])
if data['thread']:
thread = int(data['thread'])
else:
thread = 1
if thread > Config.get_max_multi_thread():
# 是否超过最大允许线程数
thread_limit = Config.get_max_multi_thread()
Expand Down
6 changes: 4 additions & 2 deletions Dashboard/static/js/aniGamerPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ $.ajax({
success: function(data) {
dataArrays = data;
parseProxy(data.proxy);
renderJson();
$(function (){
renderJson();
});
}
});

Expand Down Expand Up @@ -180,7 +182,7 @@ function readManualConfig(){

var thread = $('#manual_thread_limit').val();
manualData['thread'] = thread;

var danmu = $('#manual_danmu').is(":checked");
manualData['danmu'] = danmu;

Expand Down

0 comments on commit 4242af8

Please sign in to comment.