deming/App.vue

28 lines
504 B
Vue
Raw Normal View History

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