Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 committed Jul 19, 2024
1 parent 8cd2150 commit 6935c2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"general"
],
"i18n-ally.sourceLanguage": "zh-CN",
// "i18n-ally.displayLanguage": "en,zh",
"i18n-ally.displayLanguage": "en,zh",
"i18n-ally.namespace": false,
"i18n-ally.pathMatcher": "{locale}/translation.json",
"i18n-ally.keystyle": "nested",
Expand Down
8 changes: 0 additions & 8 deletions web/src/pages/home/mods/CreateAppModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ const CreateAppModal = (props: {
defaultValues,
});

console.log(currentApp);

const defaultBundle: TypeBundle = {
cpu: application?.bundle.resource.limitCPU || sortedBundles[0].spec.cpu.value,
memory: application?.bundle.resource.limitMemory || sortedBundles[0].spec.memory.value,
Expand Down Expand Up @@ -173,17 +171,13 @@ const CreateAppModal = (props: {
break;

case "change":
console.log(currentApp);
console.log("111");
res = await changeBundleMutation.mutateAsync({
...bundle,
appid: application?.appid,
autoscaling,
});
console.log("222");

if (isCurrentApp) {
console.log("3333");
const newResource = {
...currentApp.bundle.resource,
limitCPU: bundle.cpu,
Expand All @@ -202,15 +196,13 @@ const CreateAppModal = (props: {
autoscaling: autoscaling,
};
setCurrentApp({ ...currentApp, bundle: newBundle });
console.log(currentApp.bundle);
}

if (
currentApp &&
(bundle.cpu !== application?.bundle.resource.limitCPU ||
bundle.memory !== application?.bundle.resource.limitMemory)
) {
console.log("xxxxx");
updateCurrentApp(
currentApp!,
currentApp!.state === APP_STATUS.Stopped ? APP_STATUS.Running : APP_STATUS.Restarting,
Expand Down

0 comments on commit 6935c2a

Please sign in to comment.