WIP Поправил адаптив и ошибку обновления данных
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user