mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
43 lines
947 B
Vue
43 lines
947 B
Vue
<template>
|
||
<div id="app">
|
||
<keep-alive :include="['case']">
|
||
<router-view />
|
||
</keep-alive>
|
||
</div>
|
||
</template>
|
||
|
||
<script>
|
||
import { mapGetters } from 'vuex';
|
||
export default{
|
||
name: 'App',
|
||
computed: {
|
||
...mapGetters(['userInfo'])
|
||
},
|
||
mounted() {
|
||
//从状态值中取,因为登录处理,所以移动watch中
|
||
// console.log(this.userInfo);
|
||
// if(this.userInfo && this.userInfo.name!=''){
|
||
// this.$watermark.set(this.userInfo.name+this.userInfo.loginName);
|
||
// }
|
||
},
|
||
// watch:{
|
||
// userInfo(newVal,oldVal){
|
||
// if(newVal && newVal.name!=''){
|
||
// this.$watermark.set(newVal.name+newVal.loginName);
|
||
// }
|
||
// }
|
||
// }
|
||
}
|
||
</script>
|
||
<style lang="scss">
|
||
.u-page{
|
||
padding: 10px;
|
||
}
|
||
.text-tooltip{
|
||
background: #efeff1 !important;
|
||
border: 1px solid #e7e7e7 !important;
|
||
box-shadow: 0px 1px 5px 1px rgba(92,98,111,.3);
|
||
}
|
||
</style>
|
||
|