fix Webui function bug

This commit is contained in:
PengfeiLi0218 2019-07-03 21:33:33 +08:00
parent e1ceb52dda
commit c3c75ee841

View File

@ -59,7 +59,7 @@ class IndexView(LoginRequiredMixin, FormView):
urlpath = '/management/webui_props'
payload = {
"name":"webui_api_explorer_url",
"value" : str(data["webui_props"]).replace("\n", "\\n").replace("\"", '\\"')
"value" : data["webui_props"]
}
result = self.api.post(urlpath, payload=payload)
except APIError as err: