Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.9k views
in Technique[技术] by (71.8m points)

如何在Vue项目中通过JS调用组件?

有一个公共JS里面通过类型判断要具体要打开那个窗口(modal),也就是怎么像组件调用方法一样在js中调用并打开?组件调用组件如下:
_self.$refs.form.edit(recordId)

我怎么在公共的js中取调用model框?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

js中通过路由跳转且传参 相应list页面获取参数 不为空就调用form即可


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...