mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
fix: enable http request (#2159)
This commit is contained in:
@@ -155,7 +155,7 @@ const HttpPluginEditModal = ({
|
||||
/* load api from url */
|
||||
const { mutate: onClickUrlLoadApi, isLoading: isLoadingUrlApi } = useRequest({
|
||||
mutationFn: async () => {
|
||||
if (!schemaUrl || !schemaUrl.startsWith('https://')) {
|
||||
if (!schemaUrl || (!schemaUrl.startsWith('https://') && !schemaUrl.startsWith('http://'))) {
|
||||
return toast({
|
||||
title: t('common:plugin.Invalid URL'),
|
||||
status: 'warning'
|
||||
|
Reference in New Issue
Block a user