“ReferenceError: Dialog is not defined” 解决办法:变成this.$dialog 引入 Dialog 组件后,会自动在 Vue 的 prototype 上挂载 $dialog 方法,在所有组件内部都可以直接调用此方法。