Skip to content

Commit 3bf540d

Browse files
committed
📱 浏览器兼容性修复
1 parent 0414018 commit 3bf540d

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

presets/tov.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import { AutoImportResolvers, normalizeResolvers } from './shared/resolvers'
5050
export default () => {
5151
return [
5252
legacy({
53-
targets: ['defaults', 'not IE 11', 'chrome 49'], //需要兼容的目标列表,可以设置多个
53+
targets: ['defaults', 'not IE 11', 'chrome >= 49', 'firefox >= 1', 'edge > 1'], //需要兼容的目标列表,可以设置多个
5454
additionalLegacyPolyfills: ['regenerator-runtime/runtime'],
5555
modernPolyfills: ['es.global-this'],
5656
renderLegacyChunks: true

src/components/layout/Header.vue

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
<el-breadcrumb-item :to="rootPath">{{ '首页' }}</el-breadcrumb-item>
77
<el-breadcrumb-item v-for="item in breadcrumbData"
88
:to="{path: encodeAllIgnoreSlashes(item.fullPath)}"
9-
:key="item.fullPath"
10-
class="hidden-xs-only">
9+
:key="item.fullPath">
1110
{{ item.name }}
1211
</el-breadcrumb-item>
1312
</el-breadcrumb>
@@ -256,7 +255,10 @@ onMounted(() => {
256255
257256
258257
.el-scrollbar {
259-
@apply max-w-[40%] md:max-w-[50%] lg:max-w-[60%] xl:max-w-[70%];
258+
@apply max-w-[70%] md:max-w-[45%] lg:max-w-[60%] xl:max-w-[70%];
259+
:deep(.el-scrollbar__wrap) {
260+
@apply overflow-hidden;
261+
}
260262
:deep(.el-scrollbar__bar.is-vertical) {
261263
display: none !important;
262264
}
@@ -298,31 +300,13 @@ onMounted(() => {
298300
299301
}
300302
301-
@media only screen and (max-width: 767px) {
302-
.zfile-header {
303-
:deep(.el-breadcrumb__separator) {
304-
display: none !important;
305-
}
306-
307-
:deep(.el-form-item__label) {
308-
display: none !important;
309-
}
310-
311-
:deep(.el-select) {
312-
width: 120px;
313-
@apply truncate text-sm font-medium text-gray-700;
314-
}
315-
}
316-
}
317-
318303
.zfile-debug-tips {
319304
:deep(.el-form-item__label) {
320305
font-weight: bold;
321306
color: red !important;
322307
}
323308
}
324309
325-
326310
.zfile-header-storage-select {
327311
:deep(.el-input__wrapper) {
328312
@apply truncate text-sm font-medium;

0 commit comments

Comments
 (0)