Git Product home page Git Product logo

Comments (4)

Ares-Chang avatar Ares-Chang commented on May 28, 2024

是的呢~除 web 端都无法直接跳转页面,需要使用 webview 打开。

参考 webview 使用,可以跳转外部链接

<script setup lang="ts">
const { url } = defineProps<{ url: string }>()
</script>
<template>
<web-view :src="url" />
</template>

/**
* Router 配置
* @param webview webview 路由地址
*/
export declare interface RouterConfig {
webview?: string
}

export const router = useRouter({
webview: '/pages/webview',
})

from uni-vitesse.

lzdml avatar lzdml commented on May 28, 2024

@Ares-Chang 也就等于说是在小程序端只能有一个页面?配置路由什么没有任何作用吗

from uni-vitesse.

Ares-Chang avatar Ares-Chang commented on May 28, 2024

emmm,你是自怎么理解的。我觉得我文档写的应该还挺清楚的。

参考: https://github.com/Ares-Chang/uni-vitesse/tree/master/src/pages

模板用了 https://github.com/uni-helper/vite-plugin-uni-pages 生成约定式路由,不需要配置原 uniapp 的 pages.json,可以看看文档了解一下。

还有,回复消息不需要 @ ,看到我会回复的,感谢。

from uni-vitesse.

Ares-Chang avatar Ares-Chang commented on May 28, 2024

请问问题是否解决,如果解决我就关闭此 Issues 了,如果依旧有问题可以激活此 Issues。

Thanks

from uni-vitesse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.