1***@139.com
1***@139.com
  • 发布:2024-09-02 10:49
  • 更新:2024-09-02 10:49
  • 阅读:78

uniapp获取flask render_template传递参数问题

分类:uni-app

1、环境服务端:flask render_template()传递参数
@app.route('/')
def index():
var_list={
'serverip':'1233333'
}
return render_template('index.html',**var_list)

2、index.html是用uniapp vue3版本发布h5生成,在uniapp中index.vue中使用{{serverip}}获取不到参数

请问这种情况应该如何获取 render_template('index.html',**var_list)中传递的参数?

2024-09-02 10:49 负责人:无 分享
已邀请:

要回复问题请先登录注册