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

perf: 优化版心宽度

parent 738d7415
......@@ -7,8 +7,8 @@
'flex-1',
'overflow-auto',
{
'not-home': $route.path != '/home',
},
'not-home': $route.path != '/home'
}
]"
>
<keep-alive>
......@@ -22,17 +22,17 @@
</template>
<script>
import { mapMutations, mapActions } from "vuex";
import Header from "./components/Header.vue";
import { getSiteTree } from "@/api/site";
import storage from "@/utils/storage";
import { mapMutations, mapActions } from 'vuex';
import Header from './components/Header.vue';
import { getSiteTree } from '@/api/site';
import storage from '@/utils/storage';
export default {
components: {
Header,
Header
},
data() {
return {
siteId: storage.get(2, "siteId"),
siteId: storage.get(2, 'siteId')
};
},
created() {
......@@ -42,25 +42,25 @@ export default {
this.getWindowList(this.siteId);
},
methods: {
...mapMutations("user", ["SET_areaTree"]),
...mapActions("user", ["getBusiness", "getDeptList", "getWindowList"]),
...mapMutations('user', ['SET_areaTree']),
...mapActions('user', ['getBusiness', 'getDeptList', 'getWindowList']),
// 获取个人站点树
async getSiteTree() {
let res = await getSiteTree({
page: 1,
size: -1,
size: -1
});
if (res.data.code == 1) {
let { siteTree } = res.data.data;
this.SET_areaTree(siteTree);
}
},
},
}
}
};
</script>
<style lang="less" scoped>
.not-home {
padding: 24px 50px;
padding: 24px;
}
</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