@huaqiu/dsh-hardware-ui 0.7.21 → 0.7.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +2 -3
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +14 -10
package/lib/client.js
CHANGED
|
@@ -155401,10 +155401,9 @@ void main() {
|
|
|
155401
155401
|
title: () => COPY.order.placeOrder.title
|
|
155402
155402
|
}) ?? (() => {}), "hardware-ui: place order tab type");
|
|
155403
155403
|
if (typeof window !== "undefined") effect(() => {
|
|
155404
|
-
const
|
|
155405
|
-
window.huaqiu = handle;
|
|
155404
|
+
const unregister = window.dshDesktop?.registerPlaceOrder?.(() => controller.placeOrder());
|
|
155406
155405
|
return () => {
|
|
155407
|
-
|
|
155406
|
+
unregister?.();
|
|
155408
155407
|
};
|
|
155409
155408
|
}, "hardware-ui: place order handle");
|
|
155410
155409
|
const slots = ctx.slots;
|