|
|
@@ -23,6 +23,7 @@ export function changeOrderContract() {
|
|
|
* @param info 合同信息
|
|
|
*/
|
|
|
function orderContractState(id: string, type: number, info?: GldSpotContractInfo): Promise<string> {
|
|
|
+ loading.value = true
|
|
|
const reqs: GldErmcpSpotContractOperateReq = {
|
|
|
SpotContractID: Number(id),
|
|
|
OperateType: type,
|
|
|
@@ -37,7 +38,7 @@ export function changeOrderContract() {
|
|
|
return Promise.resolve(sign[0])
|
|
|
})
|
|
|
.catch(err => {
|
|
|
- message.success(sign[1])
|
|
|
+ message.error(sign[1])
|
|
|
return Promise.reject(sign[1] + err)
|
|
|
}).finally(() => {
|
|
|
loading.value = false
|
|
|
@@ -68,7 +69,7 @@ export function OrderContractControl() {
|
|
|
return Promise.resolve(sign[0])
|
|
|
})
|
|
|
.catch(err => {
|
|
|
- message.success(sign[1])
|
|
|
+ message.error(sign[1])
|
|
|
return Promise.reject(sign[1] + err)
|
|
|
}).finally(() => {
|
|
|
loading.value = false
|