mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +08:00
chore: 资源迁移到项目提示优化
This commit is contained in:
@@ -118,6 +118,10 @@ export function useTransfer() {
|
||||
<div class="text-2xl font-bold"> 迁移到→ </div>
|
||||
<div>项目:"{projectStore.currentProject?.name}"</div>
|
||||
</div>
|
||||
<div class="text-center m-4">
|
||||
<p class="text-red-500">注意;此操作不可逆,一旦迁移,数据将无法还原回个人用户名下。</p>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-row items-center justify-center w-full">
|
||||
<a-button type="primary" onClick={doTransfer}>
|
||||
确认迁移
|
||||
|
||||
@@ -29,7 +29,7 @@ import { SysSettings } from "/@/views/sys/settings/api";
|
||||
import * as api from "/@/views/sys/settings/api";
|
||||
import { merge } from "lodash-es";
|
||||
import { useSettingStore } from "/@/store/settings";
|
||||
import { notification } from "ant-design-vue";
|
||||
import { Modal, notification } from "ant-design-vue";
|
||||
import { useI18n } from "/src/locales";
|
||||
import { dict } from "@fast-crud/fast-crud";
|
||||
import { useProjectStore } from "/@/store/project";
|
||||
@@ -80,6 +80,24 @@ const onFinish = async (form: any) => {
|
||||
notification.success({
|
||||
message: t("certd.saveSuccess"),
|
||||
});
|
||||
|
||||
if (formState.public.adminMode === "enterprise") {
|
||||
Modal.confirm({
|
||||
title: "数据迁移",
|
||||
okText: "去迁移",
|
||||
content: () => {
|
||||
return (
|
||||
<div>
|
||||
<div>设置为企业模式之后,之前创建的个人数据不会显示</div>
|
||||
<div>是否前往迁移数据到项目? </div>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
onOk: () => {
|
||||
goCurrentProject();
|
||||
},
|
||||
});
|
||||
}
|
||||
} finally {
|
||||
saveLoading.value = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user