2020-05-29 03:13:55 +00:00
|
|
|
<script>
|
2020-07-31 00:45:30 +00: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 03:13:55 +00:00
|
|
|
</script>
|
2020-06-02 00:47:57 +00:00
|
|
|
<style lang="scss">
|
2020-07-31 00:45:30 +00:00
|
|
|
/* #ifndef APP-PLUS-NVUE */
|
|
|
|
@import "/static/css/normalize";
|
2020-08-03 13:40:22 +00:00
|
|
|
/* 顶部自定义导航留白 */
|
|
|
|
.status_bar {
|
|
|
|
width: 100%;
|
|
|
|
height: var(--status-bar-height);
|
|
|
|
}
|
2020-07-31 00:45:30 +00:00
|
|
|
/* #endif */
|
2020-08-01 03:16:53 +00:00
|
|
|
</style>
|