From d1f462d589b5e63edcc031d731743cb19c2032af Mon Sep 17 00:00:00 2001 From: Shao Huan Qing Date: Sun, 25 Jul 2021 20:45:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=99=E6=80=81=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/v3/install-in-k8s.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/install/v3/install-in-k8s.md b/install/v3/install-in-k8s.md index ea1b471..f3b7cd3 100644 --- a/install/v3/install-in-k8s.md +++ b/install/v3/install-in-k8s.md @@ -120,17 +120,21 @@ docker push ${this.privateRegistry}/questdb:6.0.4 }, resultYaml () { let result = '' - result = this.originalYaml.replaceAll('eipwork/', this.privateRegistry + '/') - result = result.replaceAll('questdb/', this.privateRegistry + '/') + if (typeof window !== 'undefined') { + result = this.originalYaml.replaceAll('eipwork/', this.privateRegistry + '/') + result = result.replaceAll('questdb/', this.privateRegistry + '/') + } return result } }, mounted () { - axios.get('https://addons.kuboard.cn/kuboard/kuboard-v3.yaml', {}).then(resp => { - this.originalYaml = resp.data - }).catch(e => { - console.log(e) - }) + if (typeof window !== 'undefined') { + axios.get('https://addons.kuboard.cn/kuboard/kuboard-v3.yaml', {}).then(resp => { + this.originalYaml = resp.data + }).catch(e => { + console.log(e) + }) + } }, methods: { save () {