yh-hiprint 2.6.21 → 2.6.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/HiprintDesigner.vue +4 -0
- package/package.json +1 -1
package/HiprintDesigner.vue
CHANGED
|
@@ -457,6 +457,7 @@
|
|
|
457
457
|
|
|
458
458
|
function setPaperHandler(type) {
|
|
459
459
|
setPaper(type, () => {
|
|
460
|
+
if (!hiprintTemplate.value) return;
|
|
460
461
|
hiprintTemplate.value.setPaper(paperWidth.value, paperHeight.value);
|
|
461
462
|
});
|
|
462
463
|
}
|
|
@@ -969,6 +970,9 @@
|
|
|
969
970
|
|
|
970
971
|
onMounted(async () => {
|
|
971
972
|
await getDataSourceList();
|
|
973
|
+
if (route.query.code) {
|
|
974
|
+
updateTemplate(route.query.code);
|
|
975
|
+
}
|
|
972
976
|
});
|
|
973
977
|
</script>
|
|
974
978
|
<style lang="scss">
|