At which stage in the life cycle can permission be used?
天蓬老师2017-05-19 10:46:07
If you put it in, you can use it
Call: Pub.xxx()
js file inside
export const xxx= () => {
}
export default { xxx }
过去多啦不再A梦2017-05-19 10:46:07
You can use it anytime, vue is not very invasive. Can be used with many things
PHPz2017-05-19 10:46:07
Yes, permission. The js was not written well, resulting in undefined references