Skip to content

Commit

Permalink
Merge pull request #160 from xixiIBN5100/fix/lowElectricitySubcribe
Browse files Browse the repository at this point in the history
fix(subscribe): Fixed low battery subscription failure
  • Loading branch information
xixiIBN5100 authored Nov 14, 2024
2 parents a73a237 + 08e833e commit 03009b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pages/electricity/subscribe/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</template>
</card>

<view :class="styles.action" @tap="handleClickSubscribe">
<view :class="styles.action" @tap="subscribe">
<w-button size="large" shape="rounded">
点击订阅
</w-button>
Expand All @@ -31,7 +31,6 @@
import { Card, ThemeConfig, TitleBar, WButton } from "@/components";
import { YxyService } from "@/services";
import Taro from "@tarojs/taro";
import { debounce } from "@/utils";
import styles from "./index.module.scss";
/**
Expand Down Expand Up @@ -69,6 +68,4 @@ const subscribe = async () => {
});
};
const handleClickSubscribe = debounce(subscribe, 1000);
</script>

0 comments on commit 03009b6

Please sign in to comment.