安装 yarn add tgg-wc 使用 // 组件中使用 import {wc} from 'tgg-wc' created(){ wc() } // 或main.js中引入 import wc from 'tgg-wc' wc()