替换 replaceAll 方法

This commit is contained in:
Shao Huan Qing
2021-07-29 20:51:04 +08:00
parent f24653b115
commit 2f9cb4d386
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@ -32,3 +32,5 @@ HELP.md
/node_modules/
/.vuepress/dist/
/docs/
__v3.md

View File

@ -121,8 +121,8 @@ docker push ${this.privateRegistry}/questdb:6.0.4
resultYaml () {
let result = ''
if (typeof window !== 'undefined') {
result = this.originalYaml.replaceAll('eipwork/', this.privateRegistry + '/')
result = result.replaceAll('questdb/', this.privateRegistry + '/')
result = this.originalYaml.replace(/eipwork\//g, this.privateRegistry + '/')
result = result.replaceAll(/questdb\//g, this.privateRegistry + '/')
}
return result
}