def fun1():
return render_template('./login.html')
def fun2():
code
@blue.route('/',methods=['GET',])
def login():
fun1()
@blue.route('/index/',methods=['GET',])
def index():
fun2()
return render_template('./index.html')
在路由里可以调用上面的fun()跳转到login页面吗?我怎么老是报错 不知道哪里出了问题 如果不可以怎么解决这种问题呢?? 小白求助 感谢