|
@@ -941,7 +941,7 @@ function initData(vueOptions, context) {
|
|
|
try {
|
|
|
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
|
|
} catch (e) {
|
|
|
- if (Object({"NODE_ENV":"development","VUE_APP_NAME":"magazine-web","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_NAME":"magazine-web","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
|
|
}
|
|
|
}
|
|
@@ -2085,7 +2085,7 @@ uni$1;exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
-/***/ 106:
|
|
|
+/***/ 109:
|
|
|
/*!***********************************************************************************************************!*\
|
|
|
!*** C:/Users/10428/Desktop/框架源码/微前端/代码/magazine-web/uni_modules/uni-icons/components/uni-icons/icons.js ***!
|
|
|
\***********************************************************************************************************/
|
|
@@ -3411,28 +3411,29 @@ var api = {
|
|
|
|
|
|
var state = function state() {return {
|
|
|
imgList: [],
|
|
|
- contentList: [] };};
|
|
|
+ contentList: [],
|
|
|
+ details: {} };};
|
|
|
|
|
|
|
|
|
var actions = {
|
|
|
- imgQuery: function imgQuery(_ref) {return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var commit, res;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:commit = _ref.commit;_context.next = 3;return (
|
|
|
+ imgQuery: function imgQuery(_ref) {return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var _res$;var commit, res;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:commit = _ref.commit;_context.next = 3;return (
|
|
|
_request.default.get("".concat(baseurl).concat(api.imgQuery)));case 3:res = _context.sent;
|
|
|
- commit('imgQuery', res[1].data);return _context.abrupt("return",
|
|
|
+ commit('imgQuery', (_res$ = res[1]) === null || _res$ === void 0 ? void 0 : _res$.data);return _context.abrupt("return",
|
|
|
res);case 6:case "end":return _context.stop();}}}, _callee);}))();
|
|
|
},
|
|
|
- contentQuery: function contentQuery(_ref2, payload) {return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2() {var commit, res;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:commit = _ref2.commit;_context2.next = 3;return (
|
|
|
+ contentQuery: function contentQuery(_ref2, payload) {return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2() {var _res$2;var commit, res;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:commit = _ref2.commit;_context2.next = 3;return (
|
|
|
_request.default.get("".concat(baseurl).concat(api.contentQuery), payload));case 3:res = _context2.sent;
|
|
|
- commit('contentQuery', res[1].data);return _context2.abrupt("return",
|
|
|
+ commit('contentQuery', (_res$2 = res[1]) === null || _res$2 === void 0 ? void 0 : _res$2.data);return _context2.abrupt("return",
|
|
|
res);case 6:case "end":return _context2.stop();}}}, _callee2);}))();
|
|
|
} };
|
|
|
|
|
|
|
|
|
var mutations = {
|
|
|
imgQuery: function imgQuery(state, payload) {
|
|
|
- state.imgList = payload.data;
|
|
|
+ state.imgList = payload === null || payload === void 0 ? void 0 : payload.data;
|
|
|
},
|
|
|
contentQuery: function contentQuery(state, payload) {
|
|
|
- state.contentList = payload.data;
|
|
|
+ state.contentList = payload === null || payload === void 0 ? void 0 : payload.data;
|
|
|
} };var _default =
|
|
|
|
|
|
|
|
@@ -11105,7 +11106,7 @@ function type(obj) {
|
|
|
|
|
|
function flushCallbacks$1(vm) {
|
|
|
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
|
|
- if (Object({"NODE_ENV":"development","VUE_APP_NAME":"magazine-web","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_NAME":"magazine-web","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
var mpInstance = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
|
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
|
@@ -11126,14 +11127,14 @@ function nextTick$1(vm, cb) {
|
|
|
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
|
|
//2.nextTick 之前存在 render watcher
|
|
|
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
|
|
- if(Object({"NODE_ENV":"development","VUE_APP_NAME":"magazine-web","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"VUE_APP_NAME":"magazine-web","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
var mpInstance = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
|
|
']:nextVueTick');
|
|
|
}
|
|
|
return nextTick(cb, vm)
|
|
|
}else{
|
|
|
- if(Object({"NODE_ENV":"development","VUE_APP_NAME":"magazine-web","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
+ if(Object({"VUE_APP_NAME":"magazine-web","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
|
|
var mpInstance$1 = vm.$scope;
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
|
|
']:nextMPTick');
|
|
@@ -11219,7 +11220,7 @@ var patch = function(oldVnode, vnode) {
|
|
|
});
|
|
|
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
|
|
if (Object.keys(diffData).length) {
|
|
|
- if (Object({"NODE_ENV":"development","VUE_APP_NAME":"magazine-web","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
+ if (Object({"VUE_APP_NAME":"magazine-web","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
|
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
|
|
']差量更新',
|
|
|
JSON.stringify(diffData));
|