- 📢 {{ text }};该删除为
+ 📢 {{ text }}该删除为
物理删除
,删除后不可恢复,必要时可以先导出备份
@@ -44,13 +50,10 @@ const handleClose = () => {
diff --git a/src/store/modules/auth/index.ts b/src/store/modules/auth/index.ts
index 0f0488d..975ab80 100644
--- a/src/store/modules/auth/index.ts
+++ b/src/store/modules/auth/index.ts
@@ -36,11 +36,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
roles: [],
buttons: [],
namespaceIds: [],
- deleteAlert: {
- 'job-task': true,
- 'retry-scene': true,
- 'workflow-task': true
- }
+ deleteAlert: {}
});
/** is super role in static route */
@@ -184,12 +180,12 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
localStg.set('namespaceId', namespaceId);
}
- function setDeleteAlert(type: Api.Auth.DeleteAlertType, value: boolean) {
+ function setDeleteAlert(type: string, value: boolean) {
userInfo.deleteAlert[type] = value;
localStg.set('deleteAlert', userInfo.deleteAlert);
}
- function getDeleteAlert(type: Api.Auth.DeleteAlertType) {
+ function getDeleteAlert(type: string) {
const deleteAlert = localStg.get('deleteAlert') || userInfo.deleteAlert;
return deleteAlert[type];
}
diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts
index 00b9cc9..3c55300 100644
--- a/src/typings/api.d.ts
+++ b/src/typings/api.d.ts
@@ -143,7 +143,7 @@ declare namespace Api {
buttons: string[];
namespaceIds: NamespaceId[];
deleteAlert: {
- [key in DeleteAlertType]: boolean;
+ [key: string]: boolean;
};
}
diff --git a/src/typings/storage.d.ts b/src/typings/storage.d.ts
index c662515..631a07f 100644
--- a/src/typings/storage.d.ts
+++ b/src/typings/storage.d.ts
@@ -50,7 +50,7 @@ declare namespace StorageType {
data: Api.JobLog.JobMessage[];
};
deleteAlert: {
- [key in Api.Auth.DeleteAlertType]: boolean;
+ [key: string]: boolean;
};
}
}
diff --git a/src/views/group/index.vue b/src/views/group/index.vue
index e0a16cd..62a8727 100644
--- a/src/views/group/index.vue
+++ b/src/views/group/index.vue
@@ -192,6 +192,7 @@ function handleExport() {