Commit ab937710 authored by hewenhao's avatar hewenhao

fix: wordspell

parent fa44f64f
......@@ -37,7 +37,7 @@ const sendNativeMessage = (data: { type: string; data: any }) => {
window.ReactNativeWebView.postMessage(JSON.stringify(data));
};
function useNativeBridage(
function useNativeBridge(
eventType: string,
listener: (this: ComponentInternalInstance | null, ...arg: any[]) => any
): [typeof sendNativeMessage, typeof eventBus] {
......@@ -66,4 +66,4 @@ function useNativeBridage(
return [sendNativeMessage, eventBus];
}
export { useNativeBridage };
export { useNativeBridge };
......@@ -5,9 +5,9 @@
<script lang="ts" setup>
import { ref } from "vue";
import { useNativeBridage } from "@/util/use-native-bridage";
import { useNativeBridge } from "@/util/use-native-bridge";
const [sendNativeMessage, eventBus] = useNativeBridage("bindWechatChange", function(arg) {
const [sendNativeMessage, eventBus] = useNativeBridge("bindWechatChange", function(arg) {
console.log(this, arg);
});
const count = ref(1000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment