修复bug

This commit is contained in:
pan.wl.2 2024-11-14 14:59:46 +08:00
parent d917735ce2
commit a37ef07f90
5 changed files with 8 additions and 8 deletions

View File

@ -478,7 +478,7 @@ const handleSave = async () => {
await formRef.value?.validate()
const { base, column, gen } = formData
await generateEdit({ ...base, ...gen, column })
feedback.msgSuccess('操作成功')
// feedback.msgSuccess('')
removeTab()
router.back()
} catch (error: any) {

View File

@ -188,14 +188,14 @@ const handleSelectionChange = (val: any[]) => {
const handleSync = async (id: number) => {
await feedback.confirm('确定要同步表结构?')
await syncColumn({ id })
feedback.msgSuccess('操作成功')
// feedback.msgSuccess('')
}
const handleDelete = async (ids?: number[]) => {
if (!ids) ids = selectData.value.map(({ id }) => id)
await feedback.confirm('确定要删除?')
await generateDelete({ ids })
feedback.msgSuccess('删除成功')
// feedback.msgSuccess('')
getLists()
}

View File

@ -122,7 +122,7 @@ const handleSave = async () => {
template: pick(formData, ['sms_notice', 'oa_notice', 'mnp_notice', 'system_notice'])
}
await setNoticeConfig(data)
feedback.msgSuccess('操作成功')
// feedback.msgSuccess('')
removeTab()
router.back()
}

View File

@ -45,7 +45,7 @@ public class AjaxResult<T> {
* @return AjaxResult
*/
public static AjaxResult<Object> success() {
return new AjaxResult<>(ErrorEnum.SUCCESS.getCode(), ErrorEnum.SUCCESS.getMsg(), new ArrayList<>(), ErrorEnum.HIDE_MSG.getCode());
return new AjaxResult<>(ErrorEnum.SUCCESS.getCode(), ErrorEnum.SUCCESS.getMsg(), new ArrayList<>(), ErrorEnum.SHOW_MSG.getCode());
}
/**

View File

@ -37,9 +37,9 @@ public class UrlUtils {
return RequestUtils.uri() + url;
}
if (url.startsWith("/adminapi/")) {
return RequestUtils.uri() + url.replace("/adminapi/", "/api/");
}
// if (url.startsWith("//*adminapi/")) {
// return RequestUtils.uri() + url.replace("/adminapi/", "/api/");
// }*/
String engine = ConfigUtils.get("storage", "default", "local");
engine = engine.equals("") ? "local" : engine;