MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / pushModal

Function pushModal

tech-study.js:2245–2260  ·  view source on GitHub ↗

* @description 推送模态框

(options, fromToken, toToken)

Source from the content-addressed store, hash-verified

2243 * @description 推送模态框
2244 */
2245async function pushModal(options, fromToken, toToken) {
2246 // html
2247 const html = createModal(options);
2248 // 推送
2249 const res = await pushMessage({
2250 title: '消息提示',
2251 content: html,
2252 fromToken,
2253 toToken,
2254 template: 'html',
2255 });
2256 if (res && res.code === 200) {
2257 return res;
2258 }
2259 return;
2260}
2261/**
2262 * @description 创建随机点
2263 * @param bounds 范围

Callers 3

doingExamFunction · 0.70
handleLoginFunction · 0.70
startTaskFunction · 0.70

Calls 2

createModalFunction · 0.70
pushMessageFunction · 0.70

Tested by

no test coverage detected