nuxt-callapp
v1.5.0
Published
A Nuxt module for callapp-lib
Downloads
52
Maintainers
Readme
Nuxt CallApp
A nuxt module for callapp-lib
Features
- [] update wx support by
callapp-lib
Quick Setup
- Add
nuxt-callapp
dependency to your project
# Using pnpm
pnpm add -D nuxt-callapp
# Using yarn
yarn add --dev nuxt-callapp
# Using npm
npm install --save-dev nuxt-callapp
- Add
nuxt-callapp
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-callapp'
],
callapp: {
scheme: {
protocol: 'zhihu',
},
intent: {
package: 'com.zhihu.android',
scheme: 'zhihu',
},
universal: {
host: 'oia.zhihu.com',
pathKey: '',
},
appstore: 'https://itunes.apple.com/cn/app/id432274380',
yingyongbao: '//a.app.qq.com/o/simple.jsp?pkgname=com.zhihu.android',
fallback: 'https://oia.zhihu.com/',
timeout: 2000,
},
})
That's it! You can now use My Module in your Nuxt app ✨