Kaynağa Gözat

文物鉴赏:更新二维文物数据

任一存 3 yıl önce
ebeveyn
işleme
2ba44d6768
2 değiştirilmiş dosya ile 6748 ekleme ve 626 silme
  1. 6747 625
      src/assets/data/data.js
  2. 1 1
      src/components/RelicDetail.vue

Dosya farkı çok büyük olduğundan ihmal edildi
+ 6747 - 625
src/assets/data/data.js


+ 1 - 1
src/components/RelicDetail.vue

@@ -167,7 +167,7 @@ export default {
       if (this.$route.query.imgNum === 1) {
       if (this.$route.query.imgNum === 1) {
         this.imageList = [`${this.$cdnPath}2D/${this.$route.query.bs}.jpg`]
         this.imageList = [`${this.$cdnPath}2D/${this.$route.query.bs}.jpg`]
       } else {
       } else {
-        for (let index = 0; index < this.$route.query.imgNum && index < 3; index++) {
+        for (let index = 0; (index < this.$route.query.imgNum) && (index < 3); index++) {
           this.imageList.push(`${this.$cdnPath}2D/${this.$route.query.bs} (${index + 1}).jpg`)
           this.imageList.push(`${this.$cdnPath}2D/${this.$route.query.bs} (${index + 1}).jpg`)
         }
         }
         console.log(this.imageList)
         console.log(this.imageList)