Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

示例代码的一点小问题 #564

Closed
anerg2046 opened this issue May 22, 2023 · 1 comment
Closed

示例代码的一点小问题 #564

anerg2046 opened this issue May 22, 2023 · 1 comment

Comments

@anerg2046
Copy link

在写东西的时候找参照代码发现的,具体在/views/system/user/index.vue第127行,原代码为:

<el-popconfirm title="是否确认删除?">
  <template #reference>
    <el-button
      class="reset-margin"
      link
      type="primary"
      :size="size"
      :icon="useRenderIcon(Delete)"
      @click="handleDelete(row)"
    >
      删除
    </el-button>
  </template>
</el-popconfirm>

实际上应该是

<el-popconfirm title="是否确认删除?" @confirm="handleDelete(row)">
  <template #reference>
    <el-button
      class="reset-margin"
      link
      type="primary"
      :size="size"
      :icon="useRenderIcon(Delete)"
    >
      删除
    </el-button>
  </template>
</el-popconfirm>

其它类似的地方同理,比如角色管理那里

@xiaoxian521
Copy link
Member

正在重构中 #428

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants