修复design生成的排序位置不对
This commit is contained in:
@@ -238,7 +238,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, h, ref, computed, reactive, toRefs, inject,provide,nextTick,createVNode,onBeforeUnmount, toRef} from "vue";
|
||||
import { defineComponent, h, ref, computed, reactive, toRefs, inject,provide,nextTick,createVNode,onBeforeUnmount, toRef, watch} from "vue";
|
||||
// import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||
// import HeaderComponent from "@/component/HomePage/Header.vue";
|
||||
import CollectionModal from "@/component/HomePage/collectionModal.vue";
|
||||
@@ -446,9 +446,7 @@ export default defineComponent({
|
||||
userLikeSortId:item.designItemId
|
||||
});
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
const setDeleteDesign = (value:any,index:any)=>{
|
||||
store.commit("setDeleteDesignCollectionList",index);
|
||||
let collItem = posiitonData.value.generateElList.filter((item:any)=>item.userLikeSortId == value.designItemId)[0]
|
||||
@@ -970,10 +968,12 @@ export default defineComponent({
|
||||
|
||||
.then((rv: any) => {
|
||||
if (rv) {
|
||||
this.setDesignItemStyle()
|
||||
let value = {
|
||||
objectSignList:data.requestIdList.join(),
|
||||
requestId:rv
|
||||
}
|
||||
|
||||
this.posiitonData.generateElList.forEach((item:any) => {
|
||||
item.sort -= 1
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user