Skip to content

Commit

Permalink
[fix] 1.3.2 & revert commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Diving-Fish committed Jul 19, 2023
1 parent 5eee8c7 commit 0c0acd1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion proxy/cmd/maimaidx-prober-proxy/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,14 @@ func initConfig(path string) (config, error) {
return config{}, fmt.Errorf("初次使用请填写 %s 文件,并依据教程完成根证书的安装。", path)
}

var obj config
obj := config{
Addr: ":8033",
NetworkTimeout: 30,
Slice: false,
Verbose: false,
NoEditGlobalProxy: false,
}

err = json.Unmarshal(b, &obj)
if err != nil {
return config{}, fmt.Errorf("配置文件格式有误,无法解析:%w。请检查 %s 文件的内容", err, path)
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/ChartTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ export default {
if (this.chart === null) {
let that = this;
setTimeout(() => {
that.chart = this.$echarts.init(this.$refs.chart_div, 'dark');
that.chart = this.$echarts.init(this.$refs.chart_div);
that.chart.setOption(option);
}, 100);
} else {
Expand Down

0 comments on commit 0c0acd1

Please sign in to comment.