Commit 91d483fb authored by 郭志伟's avatar 郭志伟

fix: 问题修复

parent c7712014
......@@ -11,8 +11,8 @@ export default class ActivityController extends Controller {
if (!body) {
let apollo = {};
// if (process.env.NODE_ENV === 'production') {
const { api, qiniu } = ctx.app.config.apollo || {};
apollo = { ...api, ...qiniu };
// const { api, qiniu } = ctx.app.config.apollo || {};
// apollo = { ...api, ...qiniu };
// }
body = await ctx.renderView('activity.js', { url: ctx.url, apollo });
await ctx.service.redis.set(redisKey, body);
......
module.exports = {
// Sentry options are required
organization: 'sentry',
project: 'quantum-blocks',
project: 'quantum-blocks-h5',
apiKey: '2e7e0678d81d4542b09cdbc35812f1cbb07a4993cd13435ba49d9511be11ec95',
// Release version name/hash is required
release: 'quantum-blocks@0.0.1',
baseSentryURL: 'http://sentry.quantgroups.com/api/0',
release: 'quantum-blocks-h5@0.0.1',
baseSentryURL: 'https://sentry.quantgroups.com/api/0',
deleteAfterCompile: true,
include: /js\//, // 只上传js和map文件
ignore: ['node_modules'],
......
......@@ -11,7 +11,7 @@ import lazyload from '@qg/cherry-ui/src/lazyload/index';
// 初始化sentry
if (process.env.SENTRY_ENV !== 'test' && process.env.NODE_ENV === 'production') {
Raven.config('https://0785298052fd46128e201f30ca649102@sentry.q-gp.com/64', {
Raven.config('https://00ea2b4a57c94071a8d56f4548a42de2@sentry.quantgroups.com/66', {
release,
environment: 'production'
})
......
......@@ -103,6 +103,11 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin) {
const transformY = transform.split('(')[1].split(')')[0].split(',')[5];
gridItemEle.style.top = `${transformY}px`;
gridItemEle.className += ' del_transform';
if (transform && transform.length) {
const transformY = transform.split('(')[1].split(')')[0].split(',')[5];
gridItemEle.style.top = `${transformY}px`;
gridItemEle.className += ' del_transform';
}
// 处理backgroundColor
const activityEle = document.querySelector('.activity');
const activityBgColor = getStyle(activityEle, 'backgroundColor');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment