This commit is contained in:
parent
2214cd3a9c
commit
264a4428f8
5
app.py
5
app.py
|
|
@ -81,6 +81,11 @@ def load_indices_from_es(key: str, index: str, buf: Dict[str, Any]) -> Any:
|
|||
return None
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
# 默认展示第一个客户
|
||||
return redirect(url_for('view_customer', index=0))
|
||||
|
||||
@app.route('/customer/<int:index>')
|
||||
def view_customer(index):
|
||||
# 判断是否有数据
|
||||
|
|
|
|||
Loading…
Reference in New Issue