loading
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user