import ElementPlus from 'element-plus'
const app = createApp(App)
app.use(ElementPlus).mount('#app')

<script setup>
import { getCurrentInstance, onMounted } from 'vue'
const { proxy } = getCurrentInstance()
onMounted(() => {
  proxy.$message.success('123')
})
</script>

使用confirm的方式:proxy.$confirm()

Logo

前往低代码交流专区

更多推荐