优化发布等各种状态
This commit is contained in:
@@ -3,6 +3,7 @@ import { computed, onMounted, reactive, ref } from "vue";
|
||||
import { Refresh, Search } from "@element-plus/icons-vue";
|
||||
|
||||
import { fetchListings, type Listing } from "@/api/listings";
|
||||
import { listingStatusLabel } from "@/utils/statusLabels";
|
||||
|
||||
const loading = ref(false);
|
||||
const listings = ref<Listing[]>([]);
|
||||
@@ -192,7 +193,7 @@ function listingPrice(item: Listing) {
|
||||
<div class="resource-main">
|
||||
<div class="resource-title-line">
|
||||
<strong>{{ item.title }}</strong>
|
||||
<em>{{ item.status === "published" ? "可租" : item.status }}</em>
|
||||
<em>{{ item.status === "published" ? "可租" : listingStatusLabel(item.status) }}</em>
|
||||
</div>
|
||||
<p>
|
||||
{{
|
||||
|
||||
Reference in New Issue
Block a user