Skip to content

Commit

Permalink
fix: 允许不提交VendorId
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Dec 3, 2023
1 parent 40e26ac commit a2b0733
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
@echo off
::

::¼ÓÔØNode»·¾³

IF EXIST D:\RunTime\node\runtime.bat (
CALL D:\RunTime\node\runtime set "%~n0"
)

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

CD /D %~dp0
Expand Down
2 changes: 1 addition & 1 deletion src/api/native/machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const MachineModels: Record<string, string> = {
};

export interface MachineOrig {
VendorId: number
VendorId?: number
HostName: string
IpAddress: string
OSType: string
Expand Down
1 change: 0 additions & 1 deletion src/cloud/worker/bind.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export default class WorkerBind extends Vue {
public bindMachine(item: WorkerItem) {
const meta = item.WorkerMeta;
NaApi.machine.create({
VendorId: 0,
HostName: meta.HostName,
IpAddress: meta.PublicIpv4 || meta.PublicIpv6,
OSType: meta.OS,
Expand Down

0 comments on commit a2b0733

Please sign in to comment.