Commit 30d5c3f7 by linjinhong

fix:修改问题

parent c18f0593
......@@ -1222,19 +1222,8 @@
</div>
<div class="order-detail-item">
<span class="order-detail-item-label">自定义标签:</span>
<span
class="order-detail-item-value"
:title="
row.customTagList?.length
? row.customTagList.map((item) => item.name).join(',')
: ''
"
>
{{
row.customTagList?.length
? row.customTagList.map((item) => item.name).join(',')
: ''
}}
<span class="order-detail-item-value" :title="getTagName(row)">
{{ getTagName(row) }}
</span>
</div>
<div class="order-detail-item">
......@@ -5039,6 +5028,12 @@ const handleBeforeRouteLeave = (
next()
}
const getTagName = (row: ProductList) => {
return row.customTagList?.length
? row.customTagList.map((item: { name: string }) => item.name).join(',')
: ''
}
useRouter().beforeEach((to, from, next) => {
handleBeforeRouteLeave(to, from, next)
})
......
......@@ -1384,19 +1384,8 @@
</div>
<div class="order-detail-item">
<span class="order-detail-item-label">自定义标签:</span>
<span
class="order-detail-item-value"
:title="
row.customTagList?.length
? row.customTagList.map((item) => item.name).join(',')
: ''
"
>
{{
row.customTagList?.length
? row.customTagList.map((item) => item.name).join(',')
: ''
}}
<span class="order-detail-item-value" :title="getTagName(row)">
{{ getTagName(row) }}
</span>
</div>
<div class="order-detail-item">
......@@ -5985,6 +5974,12 @@ async function getPermission() {
console.log(res)
}
const getTagName = (row: ProductList) => {
return row.customTagList?.length
? row.customTagList.map((item: { name: string }) => item.name).join(',')
: ''
}
getPermission()
const globalProperties =
getCurrentInstance()?.appContext.config.globalProperties // 获取全局挂载
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment