mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-05-10 20:52:10 +08:00
refactor: 移除 Modal 组件直接导入,统一使用 window.modal 调用
将项目中直接导入的 antdv-next Modal 组件替换为通过 window.modal 调用,提升代码一致性 删除不再使用的 table-switch.vue 组件
This commit is contained in:
@@ -5,7 +5,7 @@ import type { SocialInfo } from '#/api/system/social/model';
|
||||
|
||||
import { onMounted, ref } from 'vue';
|
||||
|
||||
import { Alert, Avatar, Card, Empty, Modal, Tooltip } from 'antdv-next';
|
||||
import { Alert, Avatar, Card, Empty, Tooltip } from 'antdv-next';
|
||||
|
||||
import { authUnbinding } from '#/api';
|
||||
import { socialList } from '#/api/system/social';
|
||||
@@ -50,7 +50,7 @@ function handleUnbind(record: BindItemWithInfo) {
|
||||
if (!record.info) {
|
||||
return;
|
||||
}
|
||||
Modal.confirm({
|
||||
window.modal.confirm({
|
||||
content: `确定解绑[${record.source}]平台的[${record.info.userName}]账号吗?`,
|
||||
async onOk() {
|
||||
await authUnbinding(record.info!.id);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import type { UpdatePasswordParam } from '#/api/system/profile/model';
|
||||
|
||||
import { Modal } from 'antdv-next';
|
||||
import { omit } from 'lodash-es';
|
||||
|
||||
import { useVbenForm, z } from '#/adapter/form';
|
||||
@@ -79,7 +78,7 @@ function buttonLoading(loading: boolean) {
|
||||
|
||||
const authStore = useAuthStore();
|
||||
function handleSubmit(values: any) {
|
||||
Modal.confirm({
|
||||
window.modal.confirm({
|
||||
content: '确认修改密码吗?',
|
||||
onOk: async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user