Skip to content

xjccc/nuxt-callapp

Repository files navigation

callapp logo

npm version npm downloads

Nuxt CallApp

A nuxt module for callapp-lib

Features

  • [] update wx support by callapp-lib

Quick Setup

  1. 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
  1. Add nuxt-callapp to the modules section of nuxt.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 ✨