16 lines
332 B
JavaScript
16 lines
332 B
JavaScript
import "vue";
|
|
function requireNativePlugin(name) {
|
|
return weex.requireModule(name);
|
|
}
|
|
function formatAppLog(type, filename, ...args) {
|
|
if (uni.__log__) {
|
|
uni.__log__(type, filename, ...args);
|
|
} else {
|
|
console[type].apply(console, [...args, filename]);
|
|
}
|
|
}
|
|
export {
|
|
formatAppLog as f,
|
|
requireNativePlugin as r
|
|
};
|