flat: 警告处理
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user