<template>
  <view />
</template>

<script>
export default {
  onLoad(options) {
    const categoryId = options && options.categoryId ? String(options.categoryId) : '';
    if (categoryId !== '') {
      uni.setStorageSync('selectedCategory', categoryId);
    }
    uni.switchTab({ url: '/pages/main/index' });
  }
}
</script>

<style scoped>
</style>
