命名冲突
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
附件
|
||||
</p>
|
||||
<div class="card-list">
|
||||
<div class="item" v-for="(item,index) in info.files" :key="index" @click="previewFile(item)">
|
||||
<div class="item" v-for="(item,index) in info.files" :key="index" @click="prevFile(item)">
|
||||
<img src="./components/files.png" alt="">
|
||||
<div>{{ item.fileName }}</div>
|
||||
</div>
|
||||
@@ -21,7 +21,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState,mapActions} from 'vuex'
|
||||
import { mapState, mapActions } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'newsDetail',
|
||||
@@ -77,7 +77,7 @@ export default {
|
||||
})
|
||||
},
|
||||
...mapActions(['previewFile']),
|
||||
previewFile(e) {
|
||||
prevFile(e) {
|
||||
if ([".jpg", ".png", ".gif"].includes(e.postfix.toLowerCase())) {
|
||||
uni.previewImage({
|
||||
current: e.url,
|
||||
|
||||
Reference in New Issue
Block a user