deming/App.vue
2020-08-03 21:40:22 +08:00

28 lines
520 B
Vue

<script>
import { mapMutations } from 'vuex';
export default {
onLaunch() {
// 缓存token
uni.getStorage({
key: "token",
success: (res) => {
this.loginIn(res.data);
}
})
},
methods: {
...mapMutations(['loginIn'])
}
}
</script>
<style lang="scss">
/* #ifndef APP-PLUS-NVUE */
@import "/static/css/normalize";
/* 顶部自定义导航留白 */
.status_bar {
width: 100%;
height: var(--status-bar-height);
}
/* #endif */
</style>