bugfix: 导航i18n
This commit is contained in:
@@ -1853,5 +1853,6 @@ export default {
|
|||||||
MyListingsInfo: '已发布商品和未发布库存',
|
MyListingsInfo: '已发布商品和未发布库存',
|
||||||
SelectCollection: '选择商品',
|
SelectCollection: '选择商品',
|
||||||
SelectSketch: '选择线稿图',
|
SelectSketch: '选择线稿图',
|
||||||
|
EditListingDetails: '编辑商品详情',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1907,5 +1907,6 @@ export default {
|
|||||||
MyListingsInfo: 'Active listings and unpublished inventory',
|
MyListingsInfo: 'Active listings and unpublished inventory',
|
||||||
SelectCollection: 'Select Collection',
|
SelectCollection: 'Select Collection',
|
||||||
SelectSketch: 'Select Sketch',
|
SelectSketch: 'Select Sketch',
|
||||||
|
EditListingDetails: 'Edit Listing Details',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,15 +13,15 @@ type SellerBreadcrumbItem = {
|
|||||||
type SellerBreadcrumbList = SellerRouteMetaValue<SellerBreadcrumbItem[]>
|
type SellerBreadcrumbList = SellerRouteMetaValue<SellerBreadcrumbItem[]>
|
||||||
|
|
||||||
const myListingsBreadcrumb: SellerBreadcrumbItem = {
|
const myListingsBreadcrumb: SellerBreadcrumbItem = {
|
||||||
title: "Seller.MyListings",
|
titleKey: "Seller.MyListings",
|
||||||
to: { name: "myListingsIndex" }
|
to: { name: "myListingsIndex" }
|
||||||
}
|
}
|
||||||
const selectCollectionBreadcrumb: SellerBreadcrumbItem = {
|
const selectCollectionBreadcrumb: SellerBreadcrumbItem = {
|
||||||
title: "Seller.SelectCollection",
|
titleKey: "Seller.SelectCollection",
|
||||||
to: { name: "myListingsSelect" }
|
to: { name: "myListingsSelect" }
|
||||||
}
|
}
|
||||||
const selectSketchBreadcrumb: SellerBreadcrumbItem = {
|
const selectSketchBreadcrumb: SellerBreadcrumbItem = {
|
||||||
title: "Seller.SelectSketch",
|
titleKey: "Seller.SelectSketch",
|
||||||
to: (route) => {
|
to: (route) => {
|
||||||
const collectionId =
|
const collectionId =
|
||||||
route.params.collectionId ||
|
route.params.collectionId ||
|
||||||
@@ -33,7 +33,7 @@ const selectSketchBreadcrumb: SellerBreadcrumbItem = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const editListingBreadcrumb: SellerBreadcrumbItem = {
|
const editListingBreadcrumb: SellerBreadcrumbItem = {
|
||||||
title: "Edit Listing Details"
|
titleKey: "Seller.EditListingDetails"
|
||||||
}
|
}
|
||||||
const statusBreadcrumb: SellerBreadcrumbItem = {
|
const statusBreadcrumb: SellerBreadcrumbItem = {
|
||||||
titleKey: (route) =>
|
titleKey: (route) =>
|
||||||
@@ -257,8 +257,8 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
name: "myListingsIndex",
|
name: "myListingsIndex",
|
||||||
meta: {
|
meta: {
|
||||||
enter: "all",
|
enter: "all",
|
||||||
sellerHeaderTitle: "Seller.MyListings",
|
sellerHeaderTitleKey: "Seller.MyListings",
|
||||||
sellerHeaderTip: "Seller.MyListingsInfo",
|
sellerHeaderTipKey: "Seller.MyListingsInfo",
|
||||||
sellerBreadcrumbs: [myListingsBreadcrumb]
|
sellerBreadcrumbs: [myListingsBreadcrumb]
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () =>
|
||||||
@@ -269,7 +269,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
name: "myListingsSelect",
|
name: "myListingsSelect",
|
||||||
meta: {
|
meta: {
|
||||||
enter: "all",
|
enter: "all",
|
||||||
sellerHeaderTitle: "Seller.SelectCollection",
|
sellerHeaderTitleKey: "Seller.SelectCollection",
|
||||||
sellerBreadcrumbs: [
|
sellerBreadcrumbs: [
|
||||||
myListingsBreadcrumb,
|
myListingsBreadcrumb,
|
||||||
selectCollectionBreadcrumb
|
selectCollectionBreadcrumb
|
||||||
@@ -284,7 +284,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
meta: {
|
meta: {
|
||||||
enter: "all",
|
enter: "all",
|
||||||
cache: true,
|
cache: true,
|
||||||
sellerHeaderTitle: "Seller.SelectCollection",
|
sellerHeaderTitleKey: "Seller.SelectCollection",
|
||||||
sellerBreadcrumbs: [
|
sellerBreadcrumbs: [
|
||||||
myListingsBreadcrumb,
|
myListingsBreadcrumb,
|
||||||
selectCollectionBreadcrumb,
|
selectCollectionBreadcrumb,
|
||||||
@@ -299,7 +299,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
name: "EditDetail",
|
name: "EditDetail",
|
||||||
meta: {
|
meta: {
|
||||||
enter: "all",
|
enter: "all",
|
||||||
sellerHeaderTitle: "Edit Listing Details",
|
sellerHeaderTitleKey: "Seller.EditListingDetails",
|
||||||
sellerBreadcrumbs: editListingBreadcrumbs
|
sellerBreadcrumbs: editListingBreadcrumbs
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () =>
|
||||||
@@ -310,7 +310,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
name: "Status",
|
name: "Status",
|
||||||
meta: {
|
meta: {
|
||||||
enter: "all",
|
enter: "all",
|
||||||
sellerHeaderTitle: "Edit Listing Details",
|
sellerHeaderTitleKey: "Seller.EditListingDetails",
|
||||||
sellerBreadcrumbs: listingStatusBreadcrumbs
|
sellerBreadcrumbs: listingStatusBreadcrumbs
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () =>
|
||||||
|
|||||||
Reference in New Issue
Block a user