28 lines
525 B
Vue
28 lines
525 B
Vue
<script>
|
|
import store from '@/store/index.js';
|
|
export default {
|
|
onLaunch: function (options) {
|
|
let token = uni.getStorageSync('token');
|
|
// if (token) {
|
|
// store.commit('setToken', token);
|
|
// } else {
|
|
// uni.reLaunch({
|
|
// url: '/pages/login/login'
|
|
// });
|
|
// }
|
|
},
|
|
onShow: function (e) {},
|
|
onHide: function () {}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
/*每个页面公共css */
|
|
@import '@/uni_modules/uview-plus/index.scss';
|
|
@import '@/common/index.scss';
|
|
|
|
input {
|
|
background: rgba(0, 0, 0, 0);
|
|
}
|
|
</style>
|