Bladeren bron

fix a bug

xy 7 jaren geleden
bovenliggende
commit
33d4d898a7
2 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 1 0
      src/app/common/deploy/tencent/APIGroupCard.js
  2. 1 0
      src/app/common/deploy/tencent/DeployCard.js

+ 1 - 0
src/app/common/deploy/tencent/APIGroupCard.js

@@ -37,6 +37,7 @@ const removePrefix = (prefix, value) => {
 };
 
 const shiftPrefix = (prefix, value) => {
+    value = removePrefix(prefix, value);
     return prefix + value;
 };
 

+ 1 - 0
src/app/common/deploy/tencent/DeployCard.js

@@ -41,6 +41,7 @@ const removePrefix = (prefix, value) => {
 };
 
 const shiftPrefix = (prefix, value) => {
+    value = removePrefix(prefix, value);
     return prefix + value;
 };