ArtifactsPane 发布禁用条件改用严格判空
- `online?.nextVersionNumber == null` 改为 `!online || online.nextVersionNumber === null` - 去掉宽松相等,同时显式挡掉 online 为空的形态
This commit is contained in:
+2
-1
@@ -119,7 +119,8 @@ export function ArtifactsPane({
|
||||
publish.publishing ||
|
||||
!form ||
|
||||
onlineState !== 'ready' ||
|
||||
online?.nextVersionNumber == null;
|
||||
!online ||
|
||||
online.nextVersionNumber === null;
|
||||
|
||||
let publishLabel = '打包并发布';
|
||||
if (publish.publishing) {
|
||||
|
||||
Reference in New Issue
Block a user