fix(projects): 修复tab在移动端无法点击

This commit is contained in:
Soybean 2021-11-14 20:36:12 +08:00
parent 364c64b464
commit 1a76de0446
2 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,7 @@
:item-style="{ paddingTop: '0px', paddingBottom: '0px' }" :item-style="{ paddingTop: '0px', paddingBottom: '0px' }"
> >
<div class="flex-1-hidden h-full"> <div class="flex-1-hidden h-full">
<better-scroll :options="{ scrollX: true, scrollY: false }"> <better-scroll :options="{ scrollX: true, scrollY: false, click: true }">
<multi-tab /> <multi-tab />
</better-scroll> </better-scroll>
</div> </div>

View File

@ -18,6 +18,9 @@ export default defineConfig({
} }
}, },
plugins, plugins,
server: {
host: '0.0.0.0'
},
build: { build: {
brotliSize: false, brotliSize: false,
sourcemap: false sourcemap: false