t-comm
Version:
专业、稳定、纯粹的工具库
21 lines (16 loc) • 841 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var tslib_es6 = require('../../../tslib.es6-01322ba9.js');
var vueStart_helper_initConfig_helper = require('./helper.js');
function initConfig(app) {
app.config.productionTip = false;
vueStart_helper_initConfig_helper.initCommonConfig(app);
// 忽略自定义元素标签抛出的报错
if (app.config.ignoredElements) {
// uni-app里定义了一系列uni-xxx的自定义标签,需要不影响它
app.config.ignoredElements = tslib_es6.__spreadArray(tslib_es6.__spreadArray([], app.config.ignoredElements, true), ['wx-open-launch-app', 'wx-open-launch-weapp', 'wx-open-subscribe'], false);
} else {
app.config.ignoredElements = ['wx-open-launch-app', 'wx-open-launch-weapp', 'wx-open-subscribe'];
}
}
exports.initConfig = initConfig;