解决项目处理过程中的锁死

This commit is contained in:
WindowBird 2025-11-24 16:12:22 +08:00
parent 1b651d43ef
commit 5ae394b508
3 changed files with 8 additions and 5 deletions

View File

@ -127,7 +127,8 @@ export const createProject = (data) => {
export const updateProject = (data) => {
return uni.$uv.http.put('bst/project', data, {
custom: {
auth: true
auth: true,
catch:true
}
});
};
@ -142,7 +143,8 @@ export const deleteProject = (ids) => {
return uni.$uv.http.delete(`bst/project/${idsParam}`, {}, {
custom: {
auth: true
auth: true,
catch:true
}
});
};

View File

@ -704,7 +704,7 @@ const handleDeleteProject = (project) => {
} catch (err) {
console.error('删除项目失败:', err);
uni.showToast({
title: err?.message || '删除失败,请稍后重试',
title: err?.msg || '删除失败,请稍后重试',
icon: 'none'
});
} finally {
@ -899,7 +899,8 @@ onLoad(() => {
background-color: #fff;
border-bottom: 1px solid #e4e7ed;
position: fixed;
//top: 0;
// TODO: top
top: 0;
right: 0;
left: 0;
z-index: 100;

View File

@ -11,7 +11,7 @@ export const Request = () => {
uni.$uv.http.setConfig((config) => {
/* config 为默认全局配置*/
config.baseURL = 'http://192.168.1.2:4001'; /* 根域名 */
// config.baseURL = 'https://pm.ccttiot.com/prod-api'; /* 根域名 */
config.baseURL = 'https://pm.ccttiot.com/prod-api'; /* 根域名 */
return config
})