webLink.vue 512 B

12345678910111213141516171819202122232425262728
  1. <route lang="json5" type="page">
  2. {
  3. layout: 'default',
  4. needLogin: true,
  5. style: {
  6. navigationBarTitleText: '',
  7. navigationBarBackgroundColor: '#fff',
  8. },
  9. }
  10. </route>
  11. <script setup>
  12. import { t } from '@/locale'
  13. import { getPageParams } from '@/utils/page'
  14. const params = ref({})
  15. onLoad((options) => {
  16. params.value = getPageParams(options)
  17. uni.setNavigationBarTitle({
  18. title: params.value.title || t('webLink.title'),
  19. })
  20. })
  21. </script>
  22. <template>
  23. <web-view :src="params.link" />
  24. </template>