Skip to content

使用pinia封装message组件,不能正常使用 #7870

@lanxizhu

Description

@lanxizhu
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.5

Environment

Windows 11 专业工作站版 22631.4169, Chrome 129.0.6668.90,Vue 3.5.11

Reproduction link

https://stackblitz.com/edit/vitejs-vite-zzcl2j?file=README.md

Steps to reproduce

点击 click 按钮

What is expected?

报错 globalStore.message.success is not a function
image

What is actually happening?

正确弹出 message 组件

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions