修改镜像打包流程

This commit is contained in:
hanhh
2021-06-30 23:38:46 +08:00
parent 2a1adb2e0e
commit 2fe8c38293
4 changed files with 16 additions and 11 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export default class EnvService {
public async create(payload: Env): Promise<Env> {
const envs = await this.envs();
let position = initEnvPosition;
if (envs && envs.length > 0) {
if (envs && envs.length > 0 && envs[envs.length - 1].position) {
position = envs[envs.length - 1].position;
}
const tab = new Env({ ...payload, position: position / 2 });