diff --git a/src/hooks/bootx/useUpload.ts b/src/hooks/bootx/useUpload.ts index cc894f2c..2267210b 100644 --- a/src/hooks/bootx/useUpload.ts +++ b/src/hooks/bootx/useUpload.ts @@ -2,7 +2,7 @@ import { useUserStoreWithOut } from '/@/store/modules/user' import { computed } from 'vue' import { getAppEnvConfig } from '/@/utils/env' const useUserStore = useUserStoreWithOut() -const { VITE_GLOB_API_URL } = getAppEnvConfig() +const { VITE_GLOB_API_URL, VITE_GLOB_API_URL_PREFIX } = getAppEnvConfig() export function useUpload(uploadUrl: string) { /** @@ -18,7 +18,7 @@ export function useUpload(uploadUrl: string) { * 上传地址 */ const uploadAction = computed(() => { - return VITE_GLOB_API_URL + uploadUrl + return VITE_GLOB_API_URL + VITE_GLOB_API_URL_PREFIX + uploadUrl }) return { tokenHeader, diff --git a/src/views/payment/channel/config/ChannelPayConfigEdit.vue b/src/views/payment/channel/config/ChannelPayConfigEdit.vue index 44052f32..7ff0db20 100644 --- a/src/views/payment/channel/config/ChannelPayConfigEdit.vue +++ b/src/views/payment/channel/config/ChannelPayConfigEdit.vue @@ -1,6 +1,7 @@