Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教一下 如何在插件内main.js定义全局组件 然后在各页面直接使用 #20

Open
flym1013 opened this issue Jun 29, 2021 · 1 comment

Comments

@flym1013
Copy link

我现在按照uniapp的方式,main.js 里进行全局导入和注册,但无法在页面直接使用

`
import test from './components/test'
Vue.component('test1',test)

`
在页面无法直接使用test1这个组件

@devilwjp
Copy link
Collaborator

devilwjp commented Sep 8, 2022

@flym1013 插件模式下,没有全局组件的概念

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants