Skip to content

Commit c23fcc2

Browse files
authored
fix: interface /bind-container add parmas (#12)
1 parent 0982a2b commit c23fcc2

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

packages/web/quasar.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ module.exports = configure(function (ctx) {
8686
proxy: {
8787
"/api": {
8888
// target: "http://127.0.0.1:3010/",
89-
target: "https://devbox.zhaohuaiyuan.myterminus.com/",
89+
target: "https://fa5bd82b.zhaohuaiyuan.myterminus.com/",
9090
changeOrigin: true,
9191
},
9292
"/upload": {
9393
// target: "http://127.0.0.1:3010/",
94-
target: "https://devbox.zhaohuaiyuan.myterminus.com/",
94+
target: "https://fa5bd82b.zhaohuaiyuan.myterminus.com/",
9595
changeOrigin: true,
9696
},
9797

packages/web/src/components/ContainerComponent.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ function bindContainer(container: Container) {
6565
podSelector: container.podSelector,
6666
containerName: container.containerName,
6767
devContainerName: data.devContainerName,
68-
devEnv: data.devEnv
68+
devEnv: data.devEnv,
69+
image: container.image
6970
};
7071
7172
if (data.container) {

packages/web/src/stores/app.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,16 @@ export const useDevelopingApps = defineStore('app', {
164164
podSelector,
165165
containerName,
166166
devEnv,
167-
devContainerName
167+
devContainerName,
168+
image
168169
}: {
169170
containerId?: number;
170171
appId: number;
171172
podSelector: string;
172173
containerName: string;
173174
devEnv?: string;
174175
devContainerName: string;
176+
image: string;
175177
}): Promise<void> {
176178
try {
177179
await axios.post(this.url + '/api/bind-container', {
@@ -180,7 +182,8 @@ export const useDevelopingApps = defineStore('app', {
180182
podSelector,
181183
containerName,
182184
devEnv,
183-
devContainerName
185+
devContainerName,
186+
image
184187
});
185188
} catch (e) {
186189
console.log(e);

0 commit comments

Comments
 (0)