mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 18:52:07 +08:00
Fix zebra printer CSP issue [SCI-8859] (#5806)
This commit is contained in:
parent
9d336423ab
commit
5a44400fbb
1 changed files with 6 additions and 4 deletions
|
@ -130,12 +130,11 @@
|
|||
})
|
||||
|
||||
$(this.$refs.modal).on('hidden.bs.modal', () => {
|
||||
if (this.zebraEnabled) {
|
||||
this.zebraPrinters = null;
|
||||
}
|
||||
this.$emit('close');
|
||||
});
|
||||
|
||||
if (this.zebraEnabled) {
|
||||
this.initZebraPrinter();
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
availableTemplates() {
|
||||
|
@ -167,6 +166,9 @@
|
|||
watch: {
|
||||
showModal() {
|
||||
if (this.showModal) {
|
||||
if (this.zebraEnabled) {
|
||||
this.initZebraPrinter();
|
||||
}
|
||||
$(this.$refs.modal).modal('show');
|
||||
this.validateTemplate();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue