This commit is contained in:
lzp
2026-03-30 16:18:20 +08:00
parent f329165faf
commit 1789792067
2 changed files with 7 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<template>
<!-- <RouteCache /> -->
<router-view></router-view>
<div id="loading" v-if="loading" v-loading="true"></div>
<div id="loading" v-show="loading" v-loading="true"></div>
</template>
<script setup lang="ts">

View File

@@ -47,7 +47,8 @@ export const getProjectList = (params) => {
return request({
url: `/api/project/list`,
method: 'get',
params
params,
loading: true,
})
}
@@ -66,7 +67,8 @@ export const updateProject = (id: string, data: Object) => {
return request({
url: `/api/project/${id}`,
method: 'put',
data
data,
loading: true,
})
}
/**
@@ -77,7 +79,8 @@ export const updateProject = (id: string, data: Object) => {
export const deleteProject = (id: string) => {
return request({
url: `/api/project/${id}`,
method: 'delete'
method: 'delete',
loading: true,
})
}