Skip to content

Commit

Permalink
fix: 修复路由参数无效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumbiu committed Jan 26, 2023
1 parent 8a6dd85 commit 72b280a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/components/Articles/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ onUnmounted(() => {
<div class="all-text-black pb-5 box-border w-full">
<div class="flex" style="font-size: 13.67px;" border-b-1>
<ArticlesLink />
<UnoSelect v-if="route.query.sort?.indexOf('hottest') !== -1" class="" />
<UnoSelect />
</div>
<ul v-if="!isLoading && initialItem">
<ArticlesItem
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Uno/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const isShow = ref(false)
</script>

<template>
<div class="dorp-down-area">
<div v-if="$route.query.sort && $route.query.sort?.indexOf('hottest') !== -1" class="dorp-down-area">
<div class="drop-down dorp-down">
<li class="dropdown-toggle flex items-center justify-between" @click="isShow = !isShow">
7天内
Expand Down

0 comments on commit 72b280a

Please sign in to comment.