Commit c4ffdc39 authored by 郭志伟's avatar 郭志伟

fix: 问题修复

parent f018dbc6
module.exports = { module.exports = {
// Sentry options are required // Sentry options are required
organization: 'sentry', organization: 'sentry',
project: 'quantum-blocks-h5', project: 'quantum-block-h5',
apiKey: '2e7e0678d81d4542b09cdbc35812f1cbb07a4993cd13435ba49d9511be11ec95', apiKey: '2e7e0678d81d4542b09cdbc35812f1cbb07a4993cd13435ba49d9511be11ec95',
// Release version name/hash is required // Release version name/hash is required
release: 'quantum-blocks-h5@0.0.1', release: 'quantum-block-h5@0.0.1',
baseSentryURL: 'https://sentry.quantgroups.com/api/0', baseSentryURL: 'https://sentry.quantgroups.com/api/0',
deleteAfterCompile: true, deleteAfterCompile: true,
include: /js\//, // 只上传js和map文件 include: /js\//, // 只上传js和map文件
......
...@@ -6,4 +6,3 @@ export default { ...@@ -6,4 +6,3 @@ export default {
// opapiHost: `${protocol}//opapi.q-gp.com`, // opapiHost: `${protocol}//opapi.q-gp.com`,
test: false test: false
}; };
...@@ -100,9 +100,6 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin) { ...@@ -100,9 +100,6 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin) {
gridItemEle.classList.remove('del_transform'); gridItemEle.classList.remove('del_transform');
} }
const transform = getStyle(gridItemEle, 'transform'); const transform = getStyle(gridItemEle, 'transform');
const transformY = transform.split('(')[1].split(')')[0].split(',')[5];
gridItemEle.style.top = `${transformY}px`;
gridItemEle.className += ' del_transform';
if (transform && transform.length) { if (transform && transform.length) {
const transformY = transform.split('(')[1].split(')')[0].split(',')[5]; const transformY = transform.split('(')[1].split(')')[0].split(',')[5];
gridItemEle.style.top = `${transformY}px`; gridItemEle.style.top = `${transformY}px`;
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
width: 100%; width: 100%;
min-height: 100%; min-height: 100%;
background-color: rgb(244, 244, 244); background-color: rgb(244, 244, 244);
box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2); box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
// overflow-x: hidden; // overflow-x: hidden;
// overflow-y: scroll; // overflow-y: scroll;
/deep/ .vue-grid-layout { /deep/ .vue-grid-layout {
...@@ -44,14 +44,17 @@ ...@@ -44,14 +44,17 @@
box-sizing: content-box; box-sizing: content-box;
// transform: translateY(-10px); // transform: translateY(-10px);
transition-property: none; transition-property: none;
.vue-grid-item { .vue-grid-item {
transition-property: none; transition-property: none;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
/* 不可设置溢出隐藏,tabs导航会出问题 */ /* 不可设置溢出隐藏,tabs导航会出问题 */
overflow: hidden; overflow: hidden;
&>*:first-child {
& > *:first-child {
height: 100%; height: 100%;
} }
} }
......
...@@ -21,10 +21,7 @@ export default class EditorModule implements Module<EditorState, RootState> { ...@@ -21,10 +21,7 @@ export default class EditorModule implements Module<EditorState, RootState> {
actions: ActionTree<EditorState, RootState> = { actions: ActionTree<EditorState, RootState> = {
async getPageDate({ commit }, condition) { async getPageDate({ commit }, condition) {
const [res] = await api.getPageById(condition); const [res] = await api.getPageById(condition);
let { page, ...rest } = res as PageInfo; const { page, ...rest } = res as PageInfo;
if (!page) {
page = '[]';
}
commit(SET_PAGE_INFO, { ...rest, page: JSON.parse(page as string) }); commit(SET_PAGE_INFO, { ...rest, page: JSON.parse(page as string) });
} }
}; };
...@@ -34,8 +31,8 @@ export default class EditorModule implements Module<EditorState, RootState> { ...@@ -34,8 +31,8 @@ export default class EditorModule implements Module<EditorState, RootState> {
state.pageInfo = data; state.pageInfo = data;
}, },
[UPDATE_PAGE_INFO](state, { containerIndex, childIndex, data }) { [UPDATE_PAGE_INFO](state, { containerIndex, childIndex, data }) {
const page = (state.pageInfo.page as Page).elements || []; const page = (state.pageInfo.page as Page).elements;
if ((childIndex || childIndex === 0) && page[containerIndex].child) { if (childIndex || childIndex === 0) {
page[containerIndex].child.splice(childIndex, 1, data); page[containerIndex].child.splice(childIndex, 1, data);
} else { } else {
page.splice(containerIndex, 1, data); page.splice(containerIndex, 1, data);
......
{ {
"api": { "api": {
"apiHost": "https://quantum-blocks-undefined.liangkebang.net", "apiHost": "https://quantum-blocks-test1.liangkebang.net",
"h5Host": "https://quantum-h5-undefined.liangkebang.net", "h5Host": "https://quantum-h5-test1.liangkebang.net",
"opapiHost": "https://opapi-undefined.liangkebang.net", "opapiHost": "https://opapi-test1.liangkebang.net",
"passportHost": "https://passportapi-undefined.liangkebang.net", "passportHost": "https://passportapi-test1.liangkebang.net",
"kdspHost": "https://talos-undefined.liangkebang.net", "kdspHost": "https://talos-test1.liangkebang.net",
"loginUrl": "", "loginUrl": "",
"h5ShopHost": "https://tenet-undefined.liangkebang.net/#" "h5ShopHost": "https://tenet-test1.liangkebang.net/#"
}, },
"mysql": { "mysql": {
"low_code": { "low_code": {
......
...@@ -29,7 +29,7 @@ export default (appInfo: EggAppConfig) => { ...@@ -29,7 +29,7 @@ export default (appInfo: EggAppConfig) => {
exports.redis = { exports.redis = {
client: { client: {
port: 31565, // Redis port port: 31400, // Redis port
host: '172.17.5.17', // Redis host host: '172.17.5.17', // Redis host
password: '', password: '',
db: 0 db: 0
......
...@@ -1658,9 +1658,9 @@ ...@@ -1658,9 +1658,9 @@
} }
}, },
"@qg/citrus-ui": { "@qg/citrus-ui": {
"version": "0.1.13", "version": "0.1.14",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.1.13.tgz", "resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.1.14.tgz",
"integrity": "sha512-hsiOo61SwlAhp1Cc0gmOhBCH4S7aESrftZAWqWp0HbL6qwcNTLqfIOUxiFJEw0m5nrU+Evjaa8H7iAsDOBkvLg==", "integrity": "sha512-88AJuAsBMugnMFkGA60S1quAH7UEh6iNjTqvq/hbQjV5UUSxksdAgdcF0+7ASSPb8aqek4XV2fdRrvC+YBtQxA==",
"requires": { "requires": {
"@better-scroll/core": "^2.1.1", "@better-scroll/core": "^2.1.1",
"@qg/cherry-ui": "^2.20.20", "@qg/cherry-ui": "^2.20.20",
......
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