修复部分bug和页面调整

This commit is contained in:
X1627315083
2024-04-15 16:09:33 +08:00
parent 31a6d05e31
commit 6d7a597876
18 changed files with 168 additions and 72 deletions

View File

@@ -1,4 +1,5 @@
<template>
<keep-alive>
<div v-if="showCollectionModal">
<a-modal class="modal_component collection_modal Guide_1_2"
v-model:visible="showCollectionModal"
@@ -55,10 +56,10 @@
</div>
</a-modal>
</div>
</keep-alive>
</template>
<script lang="ts">
import { defineComponent ,createVNode, ref, computed,provide } from 'vue'
import { defineComponent ,createVNode, ref,onUnmounted , computed,provide } from 'vue'
import Generate from '@/component/HomePage/Generate.vue'
import MoodboardUpload from '@/component/HomePage/MoodboardUpload.vue'
@@ -95,21 +96,39 @@ export default defineComponent({
let position:any = computed(()=>{
return store.state.Workspace.workspacePosition
})
let showCollectionModal=ref(false)
let collectionStep=ref(1)
provide('driver__',driver__)
let isShowMark = ref(false)
onUnmounted(()=>{
let data = {
showCollectionModal:showCollectionModal.value,
collectionStep:collectionStep.value
}
sessionStorage.setItem('collectionData', JSON.stringify(data));
})
return {
driver__,
workspace,
t,
isShowMark,
position,
showCollectionModal,
collectionStep,
}
},
activated () {
// let data:any = JSON.parse((sessionStorage.getItem('collectionData') as any));
// if(!data){
// return
// }
// this.showCollectionModal = data.showCollectionModal
// this.collectionStep = data.collectionStep
},
data(){
return{
showCollectionModal:false,
collectionStep:1,
store:useStore()
}
},
@@ -408,7 +427,7 @@ export default defineComponent({
}
</style>
<style lang="less">
.collection_modal,.layout_modal,{
.collection_modal,.layout_modal{
// max-width: 1200px ;
// max-width: 1150px ;
.ant-modal-content{