WIP Поправил адаптив и ошибку обновления данных

This commit is contained in:
DwCay
2023-05-05 15:44:48 +03:00
parent 56b9fa257c
commit ad32fc0e54
5 changed files with 17 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
<template lang="pug">
.sidebar-wrapper.h-full.rounded.px-2.py-6.flex.flex-col
.menu-item.text-base.px-4.py-3.rounded.cursor-pointer(
.menu-item.text-base.px-4.py-3.rounded.cursor-pointer.whitespace-nowrap(
v-for="item in menuItem",
:key="item.id",
:id="item.id",
@@ -20,6 +20,9 @@ export default {
menuItem: baseInfoMenu,
};
},
updated() {
this.$store.dispatch("returnInitData");
},
methods: {
selectItem(item) {
this.value = item?.component;
@@ -29,7 +32,8 @@ export default {
</script>
<style lang="sass" scoped>
.sidebar-wrapper
width: 16.3%
min-width: 300px
min-height: 350px
background-color: var(--default-white)
.menu-item
color: var(--font-grey-color)