diff --git a/src/components/global.vue b/src/components/global.vue index 9e90cd4..b2c8757 100644 --- a/src/components/global.vue +++ b/src/components/global.vue @@ -295,12 +295,34 @@ let {content, idCard, mgc, refreshAD, scan, udisk} = res if(idCard) { // 跳转到身份证打印 - this.$router.push({ + this.cite.modeName = '身份证打印' + that.$router.push({ name: 'operationGuide', params: { name: '身份证打印' } }) + }else if(refreshAD) { + // 立即刷新广告 + this.getAdvertisement() + }else if(scan) { + // 跳转到扫描打印 + this.cite.modeName = '扫描打印' + this.$router.push({ + name: 'operationGuide', + params: { + name: '扫描打印' + } + }) + }else if(udisk) { + // 跳转到U盘打印 + this.cite.modeName = 'U盘打印' + this.$router.push({ + name: 'operationGuide', + params: { + name: 'U盘打印' + } + }) }else if(mgc) { // 是否敏感词 this.mgcData = { @@ -309,25 +331,6 @@ } this.numZt = 30 this.onNum() - }else if(refreshAD) { - // 立即刷新广告 - this.getAdvertisement() - }else if(scan) { - // 跳转到扫描打印 - this.$router.push({ - name: 'operationGuide', - params: { - name: '扫描打印' - } - }) - }else if(udisk) { - // 跳转到U盘打印 - this.$router.push({ - name: 'operationGuide', - params: { - name: 'U盘打印' - } - }) } }).catch(error => { console.log(error)