Skip to content

Commit

Permalink
perf: miniprogram适配
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Oct 23, 2024
1 parent f0a1ad7 commit 3ccf304
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"@antv/g2": "^4.2.10",
"@jx3box/jx3box-comment-ui": "^1.9.9",
"@jx3box/jx3box-common": "^8.2.24",
"@jx3box/jx3box-common-ui": "^8.9.26",
"@jx3box/jx3box-data": "^3.6.8",
"@jx3box/jx3box-common-ui": "^8.9.29",
"@jx3box/jx3box-data": "^3.6.9",
"@jx3box/jx3box-dict": "^2.1.1",
"@jx3box/jx3box-editor": "^2.2.15",
"@jx3box/jx3box-map": "^0.2.0",
Expand Down
15 changes: 15 additions & 0 deletions src/assets/css/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,21 @@
width: 100%;
box-sizing: border-box;
}

.wechat-miniprogram {
.c-breadcrumb {
position: sticky;
top: 0;
}

.c-main {
margin-top: 0;
}

.c-sidebar-left,.c-sidebar-right {
top: 48px;
}
}
}

.el-tree {
Expand Down
10 changes: 5 additions & 5 deletions src/views/cj/detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ export default {
this.loadConfig();
const ua = navigator.userAgent;
// 当ua包含 Android 或 iPhone 或 Mobile 时
if (ua.indexOf("Android") > -1 || ua.indexOf("iPhone") > -1) {
location.href = `/wujie/cj/view/${this.id}`;
}
// const ua = navigator.userAgent;
// // 当ua包含 Android 或 iPhone 或 Mobile 时
// if (ua.indexOf("Android") > -1 || ua.indexOf("iPhone") > -1) {
// location.href = `/wujie/cj/view/${this.id}`;
// }
},
};
</script>
Expand Down

0 comments on commit 3ccf304

Please sign in to comment.