dcloudio / dcloudio/uni-app

在wxcomponent如何使用公共代码?

Open
#2,607 5 comments 0 reactions 0 assignees View on GitHub
doubleCheck mp-weixin 不明确复现步骤、未提供复现工程
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

**问题描述**
在wxcomponent如何使用公共代码?我在src里面有自己定义的一系列工具,例如http.js,utils.js,还有很多一系列公共js;但是wxcomponent好像无法使用;

**复现步骤**
wxcomponent内引用import http from '@/tools/http.js';会找不到

**预期结果**
能使用公共js

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.