解决项目处理过程中的锁死
This commit is contained in:
parent
1b651d43ef
commit
5ae394b508
|
|
@ -127,7 +127,8 @@ export const createProject = (data) => {
|
||||||
export const updateProject = (data) => {
|
export const updateProject = (data) => {
|
||||||
return uni.$uv.http.put('bst/project', data, {
|
return uni.$uv.http.put('bst/project', data, {
|
||||||
custom: {
|
custom: {
|
||||||
auth: true
|
auth: true,
|
||||||
|
catch:true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
@ -142,7 +143,8 @@ export const deleteProject = (ids) => {
|
||||||
|
|
||||||
return uni.$uv.http.delete(`bst/project/${idsParam}`, {}, {
|
return uni.$uv.http.delete(`bst/project/${idsParam}`, {}, {
|
||||||
custom: {
|
custom: {
|
||||||
auth: true
|
auth: true,
|
||||||
|
catch:true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -704,7 +704,7 @@ const handleDeleteProject = (project) => {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('删除项目失败:', err);
|
console.error('删除项目失败:', err);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err?.message || '删除失败,请稍后重试',
|
title: err?.msg || '删除失败,请稍后重试',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
} finally {
|
} finally {
|
||||||
|
|
@ -899,7 +899,8 @@ onLoad(() => {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-bottom: 1px solid #e4e7ed;
|
border-bottom: 1px solid #e4e7ed;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
//top: 0;
|
// TODO: 调整top
|
||||||
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ export const Request = () => {
|
||||||
uni.$uv.http.setConfig((config) => {
|
uni.$uv.http.setConfig((config) => {
|
||||||
/* config 为默认全局配置*/
|
/* config 为默认全局配置*/
|
||||||
config.baseURL = 'http://192.168.1.2:4001'; /* 根域名 */
|
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
|
return config
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user