index.vue 548 B

1234567891011121314151617181920
  1. <template></template>
  2. <script>
  3. export default {
  4. async onLoad(props) {
  5. const { path } = props;
  6. await this.initParams();
  7. this.$jump( path || '/pages/index/home');
  8. },
  9. methods :{
  10. async initParams(){
  11. const {ACTIVE_SETTING,PAGE_INTERFACE_SHOW} = (await this.$api.platform.getPlatformParams({
  12. keys: 'ACTIVE_SETTING,PAGE_INTERFACE_SHOW'
  13. })).data.data;
  14. this.$u.vuex('vuex_active_setting', JSON.parse(ACTIVE_SETTING));
  15. this.$u.vuex('vuex_page_interface_show', JSON.parse(PAGE_INTERFACE_SHOW));
  16. }
  17. },
  18. };
  19. </script>