index.vue 648 B

12345678910111213141516171819202122232425262728
  1. <template></template>
  2. <script>
  3. export default {
  4. async onLoad(props) {
  5. const { path } = props;
  6. await this.initParams();
  7. if(this.$isEmpty(path)){
  8. uni.switchTab({
  9. url: '/pages/index/home'
  10. })
  11. }else{
  12. this.$jump( path );
  13. }
  14. },
  15. onLoad() {
  16. },
  17. methods :{
  18. async initParams(){
  19. const {ACTIVE_SETTING,PAGE_INTERFACE_SHOW} = (await this.$api.platform.getPlatformParams({
  20. keys: 'ACTIVE_SETTING,PAGE_INTERFACE_SHOW'
  21. })).data.data;
  22. this.$u.vuex('vuex_active_setting', JSON.parse(ACTIVE_SETTING));
  23. this.$u.vuex('vuex_page_interface_show', JSON.parse(PAGE_INTERFACE_SHOW));
  24. }
  25. },
  26. };
  27. </script>