flat: 警告处理

This commit is contained in:
史典卓
2025-03-29 12:06:35 +08:00
parent 09d9603f04
commit ca85430450
4 changed files with 30 additions and 17 deletions

View File

@@ -439,6 +439,17 @@ function formatFileSize(bytes) {
else if (bytes < 1024 * 1024 * 1024) return (bytes / (1024 * 1024)).toFixed(2) + ' MB'
else return (bytes / (1024 * 1024 * 1024)).toFixed(2) + ' GB'
}
function sendingMiniProgramMessage(data = {
text: 'hello'
}, action = 'defalut') {
jWeixin.miniProgram.postMessage({
data,
action
});
}
export const $api = {
msg,
prePage,
@@ -449,9 +460,12 @@ export const $api = {
chatRequest,
insertSortData,
uploadFile,
formatFileSize
formatFileSize,
sendingMiniProgramMessage
}
export default {
$api,
navTo,