做双端审批流

This commit is contained in:
hero920103 committed 2026-10-07 13:46:32 +08:00
1 parent 5b4dbb2b46
commit ffaadc26ae
69 files changed
+6662 -1071

No files matched your search

+6 -6
View File
@@ -5,7 +5,7 @@ import { request } from '@/api/request.js'
*/
export async function fetchNotes(params = {}) {
const data = await request({
url: '/app/notebook/list',
url: '/api/notebook/list',
data: {
keyword: params.keyword || ''
}
@@ -23,7 +23,7 @@ export async function fetchNotes(params = {}) {
* 获取单条笔记
*/
export async function getNote(id) {
const data = await request({ url: `/app/notebook/${id}` })
const data = await request({ url: `/api/notebook/${id}` })
if (!data) return null
return {
...data,
@@ -38,7 +38,7 @@ export async function getNote(id) {
*/
export async function createNote(data) {
const res = await request({
url: '/app/notebook',
url: '/api/notebook',
method: 'POST',
data: {
title: data.title || '',
@@ -54,7 +54,7 @@ export async function createNote(data) {
*/
export async function updateNote(id, data) {
const res = await request({
url: `/app/notebook/${id}`,
url: `/api/notebook/${id}`,
method: 'PUT',
data: {
title: data.title || '',
@@ -69,7 +69,7 @@ export async function updateNote(id, data) {
* 删除笔记
*/
export async function deleteNote(id) {
await request({ url: `/app/notebook/${id}`, method: 'DELETE' })
await request({ url: `/api/notebook/${id}`, method: 'DELETE' })
return true
}
@@ -78,7 +78,7 @@ export async function deleteNote(id) {
*/
export async function toggleNotePin(id) {
const res = await request({
url: `/app/notebook/${id}/togglePin`,
url: `/api/notebook/${id}/togglePin`,
method: 'POST'
})
return res