feat: 新增工作区域内容模块

This commit is contained in:
MTrun
2022-01-20 21:25:35 +08:00
parent 825b3bf2ea
commit ceb8cd5158
27 changed files with 398 additions and 106 deletions
@@ -33,7 +33,7 @@
</template>
<script setup lang="ts">
import { ref, computed, onMounted, toRefs } from 'vue'
import { ref, computed, onMounted, onUnmounted, toRefs } from 'vue'
import { Create } from '../Create/index'
import { AsideFooter } from '../AsideFooter/index'
import { asideWidth, asideCollapsedWidth } from '@/settings/designSetting'
@@ -62,6 +62,10 @@ const watchWidth = () => {
onMounted(() => {
window.addEventListener('resize', watchWidth)
})
onUnmounted(()=> {
window.removeEventListener('resize', watchWidth)
})
</script>
<style lang="scss" scoped>