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