no message
This commit is contained in:
@@ -44,14 +44,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<div class="empty-box flexcenter" v-if="keyword && list.length == 0">
|
||||
<Empty :isNeedIssue="true"></Empty>
|
||||
</div>
|
||||
<div class="empty-box flexcenter" v-if="keyword && list.length == 0"><Empty :isNeedIssue="true"></Empty></div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
useHead({ script: [{ src: "https://app.gter.net/bottom?tpl=header&menukey=vote" }, { src: "https://app.gter.net/bottom?tpl=footer", body: true }] })
|
||||
|
||||
let isNeedLogin = inject("isNeedLogin")
|
||||
const goLogin = inject("goLogin")
|
||||
|
||||
import { useRoute } from "vue-router"
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
@@ -116,6 +117,10 @@ const handleScroll = () => {
|
||||
|
||||
// 处理点赞
|
||||
const handleLike = (token, index) => {
|
||||
if (isNeedLogin.value) {
|
||||
goLogin()
|
||||
return
|
||||
}
|
||||
operateLikeHttp({ token }).then(res => {
|
||||
if (res.code != 200) {
|
||||
ElMessage.error(res.message)
|
||||
@@ -202,7 +207,7 @@ try {
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
min-height: 100vh;
|
||||
.vote-item {
|
||||
width: 385px;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
@@ -312,6 +317,7 @@ try {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
line-height: 20px;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.vote-option-progress {
|
||||
|
Reference in New Issue
Block a user