|
@@ -154,7 +154,8 @@ export default {
|
|
|
this.total = data.length
|
|
|
// 获取打印机列表
|
|
|
this.printList = getPrintList()
|
|
|
- this.printIndex = this.$store.state.app.printDefNeedle || undefined
|
|
|
+ const defPrint = this.$store.state.app.printDefNeedle
|
|
|
+ this.printIndex = defPrint ? (defPrint == 'undefined' ? undefined : defPrint) : undefined
|
|
|
},
|
|
|
error: function (err) {
|
|
|
console.log(err)
|