index.vue 357 B

12345678910111213141516171819
  1. <template>
  2. <div></div>
  3. </template>
  4. <script lang="ts" setup>
  5. import { onMounted } from 'vue';
  6. import { GoodsTypeEnum } from '@/interface';
  7. import router, { routerName } from '@/router';
  8. onMounted(() => {
  9. router.push({
  10. name: routerName.shop,
  11. query: { goodsType: GoodsTypeEnum.sponsors },
  12. });
  13. });
  14. </script>
  15. <style lang="scss" scoped></style>