Commit 30d5c3f7 by linjinhong

fix:修改问题

parent c18f0593
...@@ -1222,19 +1222,8 @@ ...@@ -1222,19 +1222,8 @@
</div> </div>
<div class="order-detail-item"> <div class="order-detail-item">
<span class="order-detail-item-label">自定义标签:</span> <span class="order-detail-item-label">自定义标签:</span>
<span <span class="order-detail-item-value" :title="getTagName(row)">
class="order-detail-item-value" {{ getTagName(row) }}
:title="
row.customTagList?.length
? row.customTagList.map((item) => item.name).join(',')
: ''
"
>
{{
row.customTagList?.length
? row.customTagList.map((item) => item.name).join(',')
: ''
}}
</span> </span>
</div> </div>
<div class="order-detail-item"> <div class="order-detail-item">
...@@ -5039,6 +5028,12 @@ const handleBeforeRouteLeave = ( ...@@ -5039,6 +5028,12 @@ const handleBeforeRouteLeave = (
next() next()
} }
const getTagName = (row: ProductList) => {
return row.customTagList?.length
? row.customTagList.map((item: { name: string }) => item.name).join(',')
: ''
}
useRouter().beforeEach((to, from, next) => { useRouter().beforeEach((to, from, next) => {
handleBeforeRouteLeave(to, from, next) handleBeforeRouteLeave(to, from, next)
}) })
......
...@@ -1384,19 +1384,8 @@ ...@@ -1384,19 +1384,8 @@
</div> </div>
<div class="order-detail-item"> <div class="order-detail-item">
<span class="order-detail-item-label">自定义标签:</span> <span class="order-detail-item-label">自定义标签:</span>
<span <span class="order-detail-item-value" :title="getTagName(row)">
class="order-detail-item-value" {{ getTagName(row) }}
:title="
row.customTagList?.length
? row.customTagList.map((item) => item.name).join(',')
: ''
"
>
{{
row.customTagList?.length
? row.customTagList.map((item) => item.name).join(',')
: ''
}}
</span> </span>
</div> </div>
<div class="order-detail-item"> <div class="order-detail-item">
...@@ -5985,6 +5974,12 @@ async function getPermission() { ...@@ -5985,6 +5974,12 @@ async function getPermission() {
console.log(res) console.log(res)
} }
const getTagName = (row: ProductList) => {
return row.customTagList?.length
? row.customTagList.map((item: { name: string }) => item.name).join(',')
: ''
}
getPermission() getPermission()
const globalProperties = const globalProperties =
getCurrentInstance()?.appContext.config.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