From 529bf5727490364fa04dda3325bb8ad405636c7d Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 29 Jan 2022 12:41:38 +0800 Subject: [PATCH] fix issue --- src/libs/fetch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/fetch.js b/src/libs/fetch.js index f4cb2926..da74a323 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -257,8 +257,8 @@ export default class ChainFetch { this.getSelectedConfig() } host = (config ? config.api : this.config.api) - let finalurl = (Array.isArray(host) ? host[this.getApiIndex(config)] : host) + url - finalurl = finalurl.replaceAll('v1beta1', this.getEndpointVersion()) + const finalurl = (Array.isArray(host) ? host[this.getApiIndex(config)] : host) + url + // finalurl = finalurl.replaceAll('v1beta1', this.getEndpointVersion()) const ret = await fetch(finalurl).then(response => response.json()) return ret }