ArtifactsPane 发布禁用条件改用严格判空

- `online?.nextVersionNumber == null` 改为 `!online || online.nextVersionNumber === null`
- 去掉宽松相等,同时显式挡掉 online 为空的形态
This commit is contained in:
2026-10-07 10:53:28 +08:00
parent 30b129fcfe
commit 229f0580fa
@@ -119,7 +119,8 @@ export function ArtifactsPane({
publish.publishing ||
!form ||
onlineState !== 'ready' ||
online?.nextVersionNumber == null;
!online ||
online.nextVersionNumber === null;
let publishLabel = '打包并发布';
if (publish.publishing) {