fix(config): 更新API地址和配置设置
- 修改前端环境配置文件中的API基础URL地址 - 切换路由模式从history到hash模式以解决部署问题 - 注释掉axios的withCredentials配置避免跨域问题 - 修复后端JWT认证过滤器中的代码注释和逻辑结构 - 更新Docker容器时区设置为上海时区 - 修复笔记编辑器中保存数据时字段缺失的问题 - 添加Vite构建输出目录和资源目录配置 - 恢复后端开发环境数据库路径配置
This commit is contained in:
@@ -83,7 +83,15 @@ const save = async (value) => {
|
||||
const content = typeof value === 'string' ? value : vditor.value.getValue();
|
||||
try {
|
||||
saveStatus.value = '正在保存...';
|
||||
await updateMarkdown({ id: props.editData.id, content: content });
|
||||
// 发送完整的笔记对象,确保包含所有必要字段
|
||||
await updateMarkdown({
|
||||
id: props.editData.id,
|
||||
content: content,
|
||||
title: props.editData.title,
|
||||
groupingId: props.editData.groupingId,
|
||||
fileName: props.editData.fileName,
|
||||
isPrivate: props.editData.isPrivate
|
||||
});
|
||||
// 保存成功,更新状态
|
||||
saveStatus.value = '已保存';
|
||||
emit('update:editData', { ...props.editData, content: content });
|
||||
|
||||
Reference in New Issue
Block a user