|
@@ -394,8 +394,8 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
// 切换素材
|
|
|
- const toggleMaterial = () => {
|
|
|
- const index = data.itemList.findIndex((n: any) => n.id == popupData.itemActive)
|
|
|
+ const toggleMaterial = (itemActive: any) => {
|
|
|
+ const index = data.itemList.findIndex((n: any) => n.id == itemActive)
|
|
|
if (index > -1) {
|
|
|
handleSwipeChange(index)
|
|
|
}
|
|
@@ -777,12 +777,8 @@ export default defineComponent({
|
|
|
tabActive={popupData.tabActive}
|
|
|
itemActive={popupData.itemActive}
|
|
|
onHandleSelect={(res: any) => {
|
|
|
- // console.log(res)
|
|
|
- popupData.tabActive = res.tabActive
|
|
|
- popupData.itemActive = res.itemActive
|
|
|
- popupData.tabName = res.tabName
|
|
|
popupData.open = false
|
|
|
- toggleMaterial()
|
|
|
+ toggleMaterial(res.itemActive)
|
|
|
}}
|
|
|
/>
|
|
|
</Popup>
|