|
@@ -619,6 +619,14 @@ onShow(() => {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const fetchCharging = () => {
|
|
const fetchCharging = () => {
|
|
|
|
|
+ //手工停止充电后,因为有10s延迟,暂时不查询充电状态
|
|
|
|
|
+ if (getApp<any>().globalData.manualStop) {
|
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
|
+ //10s后重置该标识,防止再次启动充电后不显示充电中快捷角标
|
|
|
|
|
+ getApp<any>().globalData.manualStop = false;
|
|
|
|
|
+ },10000)
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
fetchChargeStatus().then((res) => {
|
|
fetchChargeStatus().then((res) => {
|
|
|
if (res && [0, 1, 2, 3].includes(res.chargeStatus)) {
|
|
if (res && [0, 1, 2, 3].includes(res.chargeStatus)) {
|
|
|
charging.value = res;
|
|
charging.value = res;
|