omi-kbone - build mp

This commit is contained in:
dntzhang 2019-08-08 11:48:30 +08:00
parent f606e28966
commit e56f7912df
2 changed files with 11 additions and 5 deletions

View File

@ -174,6 +174,7 @@ var omis_esm = __webpack_require__(0);
// EXTERNAL MODULE: ./src/components/counter/_index.css
var _index = __webpack_require__(1);
var _index_default = /*#__PURE__*/__webpack_require__.n(_index);
// CONCATENATED MODULE: ./src/components/counter/index.js
@ -201,13 +202,18 @@ counter_Counter.store = function (_) {
this.update();
},
clickHandle: function clickHandle() {
wx.navigateTo({
url: '../log/index?id=1'
});
if ("undefined" != typeof wx && wx.getSystemInfoSync) {
wx.navigateTo({
url: '../log/index?id=1'
});
} else {
location.href = 'log.html';
}
}
};
};
counter_Counter.css = _index_default.a;
/* harmony default export */ var counter = (counter_Counter);
// CONCATENATED MODULE: ./src/index.js
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createApp; });

View File

@ -14,7 +14,7 @@ module.exports = function(window, document) {var navigator = window.navigator;va
/* unused harmony export define */
/* unused harmony export obaa */
/**
* omis v1.0.1 http://omijs.org
* omis v1.0.3 http://omijs.org
* Omi === Preact + Scoped CSS + Store System + Native Support in 3kb javascript.
* By dntzhang https://github.com/dntzhang
* Github: https://github.com/Tencent/omis
@ -132,7 +132,7 @@ function addStyle(cssText, id, parent) {
function addStyleToHead(style, attr, parent) {
//parent is shadowroot
if (parent || !options.staticStyleMapping[attr]) {
addStyle(scoper(style, attr), attr, parent);
"undefined" != typeof wx && wx.getSystemInfoSync || addStyle(scoper(style, attr), attr, parent);
//don't cache when is shadowroot
if (!parent) {
options.staticStyleMapping[attr] = true;