Skip to content

Commit

Permalink
fix:fix html page_parser_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
amisadmin committed Feb 27, 2022
1 parent 940f149 commit 36d9f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi_amis_admin/amis_admin/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def get_page_schema(self) -> Optional[PageSchema]:
super().get_page_schema()
if self.page_schema:
self.page_schema.url = f'{self.router.prefix}{self.page_path}'
self.page_schema.schemaApi = f'get:{self.router_path}{self.page_path}'
self.page_schema.schemaApi = f'{self.router_path}{self.page_path}'
if self.page_parser_mode == 'html':
self.page_schema.schema_ = Page(body=Iframe(src=self.page_schema.schemaApi))
return self.page_schema
Expand Down

0 comments on commit 36d9f0a

Please sign in to comment.