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.
@@ -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">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yh-hiprint",
3
- "version": "2.6.21",
3
+ "version": "2.6.22",
4
4
  "description": "Hiprint for Vue3 by NoahLiu in ForceCon in Hunan Changesha",
5
5
  "type": "module",
6
6
  "exports": {