first commit
This commit is contained in:
17
tsvue/src/core/hooks/MessageChannel.hooks.ts
Normal file
17
tsvue/src/core/hooks/MessageChannel.hooks.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { computed,toRefs, Ref, ref, reactive } from '@vue/composition-api';
|
||||
import { UnwrapRef } from '@vue/composition-api/dist/reactivity';
|
||||
|
||||
/**
|
||||
* 注意广播只能在android,Chrome,Edge,Firefox,Opera中使用
|
||||
* 不支持IE,Safari 等浏览器,请注意兼容性
|
||||
* @constructor
|
||||
*/
|
||||
export function HelpingPopupMessageChannel() {
|
||||
const state: UnwrapRef<{
|
||||
HelpingSuccess: MessageChannel
|
||||
}> = {
|
||||
HelpingSuccess: new MessageChannel()
|
||||
};
|
||||
|
||||
return state
|
||||
};
|
||||
Reference in New Issue
Block a user