Commit d1924a90 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化版心宽度

parent 738d7415
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
'flex-1', 'flex-1',
'overflow-auto', 'overflow-auto',
{ {
'not-home': $route.path != '/home', 'not-home': $route.path != '/home'
}, }
]" ]"
> >
<keep-alive> <keep-alive>
...@@ -22,17 +22,17 @@ ...@@ -22,17 +22,17 @@
</template> </template>
<script> <script>
import { mapMutations, mapActions } from "vuex"; import { mapMutations, mapActions } from 'vuex';
import Header from "./components/Header.vue"; import Header from './components/Header.vue';
import { getSiteTree } from "@/api/site"; import { getSiteTree } from '@/api/site';
import storage from "@/utils/storage"; import storage from '@/utils/storage';
export default { export default {
components: { components: {
Header, Header
}, },
data() { data() {
return { return {
siteId: storage.get(2, "siteId"), siteId: storage.get(2, 'siteId')
}; };
}, },
created() { created() {
...@@ -42,25 +42,25 @@ export default { ...@@ -42,25 +42,25 @@ export default {
this.getWindowList(this.siteId); this.getWindowList(this.siteId);
}, },
methods: { methods: {
...mapMutations("user", ["SET_areaTree"]), ...mapMutations('user', ['SET_areaTree']),
...mapActions("user", ["getBusiness", "getDeptList", "getWindowList"]), ...mapActions('user', ['getBusiness', 'getDeptList', 'getWindowList']),
// 获取个人站点树 // 获取个人站点树
async getSiteTree() { async getSiteTree() {
let res = await getSiteTree({ let res = await getSiteTree({
page: 1, page: 1,
size: -1, size: -1
}); });
if (res.data.code == 1) { if (res.data.code == 1) {
let { siteTree } = res.data.data; let { siteTree } = res.data.data;
this.SET_areaTree(siteTree); this.SET_areaTree(siteTree);
} }
}, }
}, }
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.not-home { .not-home {
padding: 24px 50px; padding: 24px;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment