|
|
@@ -1,19 +1,18 @@
|
|
|
<template>
|
|
|
- <div v-if="this.$store.state.isLogin" class="main-container">
|
|
|
+ <div v-if="store.state.isLogin" class="main-container">
|
|
|
<HeaderVue class="header"></HeaderVue>
|
|
|
<div class="main-app">
|
|
|
<div class="aside"><AsideVue></AsideVue></div>
|
|
|
<div class="section">
|
|
|
- <div class="first-title" v-if="this.$store.state.firstTitle != '主页'">
|
|
|
- {{ this.$store.state.firstTitle }}
|
|
|
+ <div class="first-title" v-if="store.state.firstTitle != '主页'">
|
|
|
+ {{ store.state.firstTitle }}
|
|
|
</div>
|
|
|
<div
|
|
|
class="main-section"
|
|
|
:style="{
|
|
|
- margin:
|
|
|
- this.$store.state.firstTitle == '主页' ? 0 : '24px 0 0 24px',
|
|
|
+ margin: store.state.firstTitle == '主页' ? 0 : '24px 0 0 24px',
|
|
|
height:
|
|
|
- this.$store.state.firstTitle == '主页'
|
|
|
+ store.state.firstTitle == '主页'
|
|
|
? 'calc(100vh - 60px)'
|
|
|
: 'calc(100vh - 136px)',
|
|
|
}"
|
|
|
@@ -33,6 +32,7 @@ import AsideVue from "./components/Aside.vue";
|
|
|
import FooterVue from "./components/Footer.vue";
|
|
|
import * as echarts from "echarts";
|
|
|
import { provide } from "vue";
|
|
|
+import store from "./store";
|
|
|
export default {
|
|
|
components: {
|
|
|
HeaderVue,
|
|
|
@@ -44,6 +44,9 @@ export default {
|
|
|
},
|
|
|
setup() {
|
|
|
provide("ec", echarts);
|
|
|
+ return {
|
|
|
+ store,
|
|
|
+ };
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
@@ -56,10 +59,6 @@ export default {
|
|
|
min-width: 1200px;
|
|
|
}
|
|
|
|
|
|
-.aside {
|
|
|
- /* width: 220px; */
|
|
|
-}
|
|
|
-
|
|
|
.footer {
|
|
|
text-align: center;
|
|
|
}
|