|
@@ -41,11 +41,11 @@
|
|
|
:style="!switchBox && hideBox ? 'display:none;' : ''"
|
|
|
>
|
|
|
<div v-if="switchPdf.pdf && switchPdf.pdf > 0">
|
|
|
- <template> </template>
|
|
|
<pdf
|
|
|
class="iframe"
|
|
|
:src="$tools.splitImgHost(switchPdf.url)"
|
|
|
- v-for="i in computedPdf(switchPdf.pdf)"
|
|
|
+ v-for="i in switchPdf.pdf"
|
|
|
+ v-show="(!switchBox && i <= 1) || switchBox"
|
|
|
:key="i"
|
|
|
:page="i"
|
|
|
ref="pdf"
|
|
@@ -1579,15 +1579,6 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(["userInfo"]),
|
|
|
- computedPdf: function () {
|
|
|
- return function (array) {
|
|
|
- if (!this.switchBox) {
|
|
|
- return 1;
|
|
|
- } else {
|
|
|
- return array;
|
|
|
- }
|
|
|
- };
|
|
|
- },
|
|
|
compyRecommend: function () {
|
|
|
return function (array) {
|
|
|
let ary = [];
|