refactor: 重命名 QRScanner 函数,统一调用方式
This commit is contained in:
@@ -10,7 +10,7 @@ import WalletCard from "./components/wallet-card.vue";
|
||||
|
||||
const { vibrate } = useHaptics();
|
||||
const walletStore = useWalletStore();
|
||||
const { openScanner } = useQRScanner();
|
||||
const { open } = useQRScanner();
|
||||
|
||||
async function handleRefresh(event: RefresherCustomEvent) {
|
||||
vibrate();
|
||||
@@ -23,7 +23,7 @@ async function handleRefresh(event: RefresherCustomEvent) {
|
||||
// 处理扫描二维码
|
||||
async function handleScan() {
|
||||
vibrate();
|
||||
const result = await openScanner({
|
||||
const result = await open({
|
||||
title: "扫描二维码",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user