diff --git a/src/components/tab-view/index.vue b/src/components/tab-view/index.vue index 5614796..c1b861d 100644 --- a/src/components/tab-view/index.vue +++ b/src/components/tab-view/index.vue @@ -33,6 +33,10 @@ function changeCurrent(index){ ctx.current = index } +defineExpose({ + changeCurrent +}) + function isCurrent(index){ return ctx.current === index } diff --git a/src/pages/commodity/commodity.vue b/src/pages/commodity/commodity.vue index b604188..2d8f614 100644 --- a/src/pages/commodity/commodity.vue +++ b/src/pages/commodity/commodity.vue @@ -13,7 +13,7 @@ - +