If the vice has slots in the bottom face, you can either make keys or dowels (probably stepped )
The principle is that the key locates the vice to the table, accurately, so that alignment is correct whenever the vice is fitted to the machine. hence the keys or dowels need to be a snug fit in both vice and T slot.
There may well be tapped holes in the bottom of the slots in the vice. These are for the capscrews or countersunk screws to retain the keys / dowels within the slot, so that they do not fall out and get lost when the vice is removed from the machine.
So you need to measure the width of the T slot, and the slot in the vice accurately.
They are unlikely to be the same size, so the keys or dowels will be stepped..
To make stepped keys, I would suggest milling the raw material to the same size as the wider of the two dimensions. (Rather than make two separate keys, start by making one which is long enough to be cut to produce two keys as a final operation before deburring.
Having the material a snug fit in the larger slot, the upper part can now be milled to the dimension of the narrower slot. The dimensions need to be such that the key in the vice is the same depth as the slot in the vice, and that the part of the key that fits into the T slot is slightly shallower than the T slot.
The double length key can now be drilled (and counterbored ) for the retaining screws which will screw into the tappings in the slot in the vice.
Before final deburring, the material can now be cut to length to produce two keys, to be fixed into the slots in the bottom of the vice.
If you choose to make stepped dowels, the procedure is similar to making the keys, but involves turning rather than milling.
Turn the larger diameter first, then the smaller, without disturbing the material, so that the diameters are concentric.. Drill a clearance hole through the dowel, (If the larger diameter is that of the T slot, the first dowel will need to be parted off reversed in the chuck and counterbored.
Counterboring should be the last operation, before deburring, after both dowels have been turned to size.
Once the machining has been completed, the keys or dowels can be secured to the vice by means of cap, or countersunk, screws into the tappings in the bottom of the vice. If it needs to be said, the screws must not bottom out in the tappings before the key / dowel is firmly clamped in position..
Hopefully to slots in the vice will ensure that the fixed vice jaw is aligned with the T slot in the Table.
HTH
Howard