You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
997 B

<template>
4 years ago
<div id="app" class="px-2">
<head-nav class="head-nav" />
<router-view></router-view>
</div>
</template>
<script>
4 years ago
import { mapActions, mapMutations } from 'vuex';
5 years ago
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN';
import HeadNav from './components/HeadNav/HeadNav.vue';
export default {
5 years ago
name: 'App',
4 years ago
components: { HeadNav },
5 years ago
data() {
return { zh_CN };
},
4 years ago
async created() {
this.setProjectId(this.$route.query.pid);
const userId = this.$route.query.uid;
const params = { userId };
await this.getUserId(params);
await this.getAllMembers({ projectId: this.$route.query.pid });
},
methods: {
...mapMutations('home', ['setProjectId', 'setMembers']),
...mapActions('user', ['getUserId']),
...mapActions('home', ['getAllMembers']),
},
5 years ago
};
</script>
<style>
5 years ago
html,
body,
#app {
min-height: 100%;
4 years ago
width: 100%;
5 years ago
}
#app {
/* background: transparent; */
}
body {
/* background: #f5f5f5 !important; */
}
</style>