Skip to content

在$confirm中的content传入子组件时,子组件无法访问$store #1463

@521707

Description

@521707

Reproduction link
谷歌

Steps to reproduce
引入的子组件均不可用访问。

What is expected?
在子组件中能正常访问$store

What is actually happening?

1
2

this.$confirm({
title: '增加员工',
content: , //此处的this中不存在$store
width: 650,
onOk() {
console.log('ok')
}
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions