refactor(frontend):调整K线图标记点样式

- 注释掉 KLineChart.vue 中的 markPoint.symbol属性,以修改标记点的显示方式
- 在 main.go 中:
- 移除初始化股票数据的冗余注释代码 - 保留获取屏幕分辨率的代码并修复缩进
  -调整应用程序窗口的最小高度
This commit is contained in:
ArvinLovegood 2025-04-24 22:19:58 +08:00
parent ffc212abc3
commit cedff896bb
2 changed files with 26 additions and 26 deletions

View File

@ -225,7 +225,7 @@ function handleKLine(code,name){
// borderColor0: downBorderColor
},
markPoint: {
symbol: 'none',
//symbol: 'none',
label: {
formatter: function (param) {
return param != null ? param.value + '' : '';

48
main.go
View File

@ -77,20 +77,20 @@ func main() {
// Sort: 0,
//})
//if stocksBin != nil && len(stocksBin) > 0 {
// go initStockData()
//}
//log.SugaredLogger.Infof("init stocksBinHK %d", len(stocksBinHK))
//
//if stocksBinHK != nil && len(stocksBinHK) > 0 {
// go initStockDataHK()
//}
//log.SugaredLogger.Infof("init stocksBinUS %d", len(stocksBinUS))
//
//if stocksBinUS != nil && len(stocksBinUS) > 0 {
// go initStockDataUS()
//}
//updateBasicInfo()
if stocksBin != nil && len(stocksBin) > 0 {
go initStockData()
}
log.SugaredLogger.Infof("init stocksBinHK %d", len(stocksBinHK))
if stocksBinHK != nil && len(stocksBinHK) > 0 {
go initStockDataHK()
}
log.SugaredLogger.Infof("init stocksBinUS %d", len(stocksBinUS))
if stocksBinUS != nil && len(stocksBinUS) > 0 {
go initStockDataUS()
}
updateBasicInfo()
// Create an instance of the app structure
app := NewApp()
@ -133,12 +133,12 @@ func main() {
//var width, height int
//var err error
//
//width, height, err = getScreenResolution()
//if err != nil {
// log.SugaredLogger.Error("get screen resolution error")
// width = 1456
// height = 768
//}
width, height, err := getScreenResolution()
if err != nil {
log.SugaredLogger.Error("get screen resolution error")
width = 1456
height = 768
}
darkTheme := data.NewSettingsApi(&data.Settings{}).GetConfig().DarkTheme
backgroundColour := &options.RGBA{R: 255, G: 255, B: 255, A: 1}
@ -147,12 +147,12 @@ func main() {
}
// Create application with options
err := wails.Run(&options.App{
err = wails.Run(&options.App{
Title: "go-stock",
//Width: width * 4 / 5,
//Height: height * 4 / 5,
Width: width * 4 / 5,
Height: height * 4 / 5,
MinWidth: 1456,
MinHeight: 900,
MinHeight: 768,
//MaxWidth: width,
//MaxHeight: height,
DisableResize: false,