bug
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
<template>
|
||||
<div class="Topic">
|
||||
<div class="Topic-item" v-for="(item, index) in list" :key="index" @click="toTopicDetail(item.id)">
|
||||
<div
|
||||
class="Topic-item"
|
||||
v-for="(item, index) in list"
|
||||
:key="index"
|
||||
hover-class="text-hover"
|
||||
@click="$linkTo('./TopicDetail?themeId=' + item.id + '&name=' + item.title)">
|
||||
<h2>#{{item.title}}</h2>
|
||||
<span>去看看</span>
|
||||
</div>
|
||||
@@ -27,7 +32,7 @@
|
||||
methods: {
|
||||
getList() {
|
||||
if (this.current > this.pages) return
|
||||
this.$instance.post(`/app/appneighborhoodassistancetheme/list¤t=${this.current}&size=20`).then(res => {
|
||||
this.$instance.post(`/app/appneighborhoodassistancetheme/list?current=${this.current}&size=20`).then(res => {
|
||||
if (res.code === 0 && res.data) {
|
||||
const list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
this.pages = Math.ceil(res.data.total / 10)
|
||||
@@ -62,7 +67,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 40px 32px;
|
||||
padding: 20px 32px;
|
||||
|
||||
h2 {
|
||||
font-size: 30px;
|
||||
|
||||
Reference in New Issue
Block a user