Skip to content

Commit

Permalink
解决 stock 路径问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
yhy committed Sep 21, 2021
1 parent 0087cea commit c6804bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self):
(r"/data/editor", dataEditorHandler.GetEditorHtmlHandler),
(r"/data/editor/save", dataEditorHandler.SaveEditorHandler),
# 获得股票指标数据。
(r"/data/indicators", dataIndicatorsHandler.GetDataIndicatorsHandler),
(r"/stock/data/indicators", dataIndicatorsHandler.GetDataIndicatorsHandler),
]
settings = dict( # 配置
template_path=os.path.join(os.path.dirname(__file__), "templates"),
Expand Down
2 changes: 1 addition & 1 deletion web/templates/stock_web.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h3 class="smaller lighter blue no-margin">股票数据详细指标分析</h3>

//每次动态加载 指标分析窗口
function showIndicatorsWindow(code) {
var baseUrl = '/data/indicators?code='+code; // 没有跨域问题,直接加载
var baseUrl = '/stock/data/indicators?code='+code; // 没有跨域问题,直接加载
$('#indicators-window-body').html( "<h5>数据加载中...请稍候.</h5>" );
$('#indicators-window-body').context = $("#indicators-window-body").load(baseUrl);
$('#indicators-window-modal').modal('show');
Expand Down

0 comments on commit c6804bb

Please sign in to comment.