前端水平太菜了,一个bug搞一下午
如果调用templates中的页面需要改成app.route里定义的路径
@app.route("/zero_shot_page")
def zero_shot_page():
return render_template("zero_shot.html")
如果调用static中的页面需要改成相对路径或者绝对路径
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="dropdown01" data-bs-toggle="dropdown" aria-expanded="false">功能体验</a>
<ul class="dropdown-menu" aria-labelledby="dropdown01">
<li><a class="dropdown-item" href="/zero_shot_page">cattree rank</a></li>
<li><div class="dropdown-divider"></div></li>
<li><a class="dropdown-item" href="../static/terms.html">Terms Conditions</a></li>
<li><div class="dropdown-divider"></div></li>
<li><a class="dropdown-item" href="../static/privacy.html">Privacy Policy</a></li>
</ul>
</li>