This commit is contained in:
小陌 2023-10-29 16:07:45 +08:00
parent 4f0832ce6c
commit 09e1309893
2 changed files with 29 additions and 32 deletions

View File

@ -13,35 +13,32 @@
</template> </template>
<script> <script>
import { defineAsyncComponent } from 'vue'; import { defineAsyncComponent } from 'vue';
const widgets = defineAsyncComponent(() => import('./widgets')); const widgets = defineAsyncComponent(() => import('./widgets'));
export default { export default {
name: "home", name: "home",
components: { components: {
widgets widgets
}, },
data(){ data() {
return { return {
pageLoading: true, pageLoading: true,
} }
}, },
created(){ created() {
},
mounted(){
// console.log(this.$socket) },
mounted() {
// console.log(this.$socket)
}, },
methods: { methods: {
onMounted(){ onMounted() {
this.pageLoading = false this.pageLoading = false
}
} }
} }
}
</script> </script>
<style> <style></style>
</style>

View File

@ -28,13 +28,13 @@ module.exports = defineConfig({
// 去除生产环境中的 console 输出 // 去除生产环境中的 console 输出
minimize: true, minimize: true,
minimizer: [ minimizer: [
new TerserPlugin({ new TerserPlugin({
terserOptions: { terserOptions: {
compress: { compress: {
drop_console: true drop_console: true
} }
} }
}) })
], ],
splitChunks: { splitChunks: {
chunks: "all", chunks: "all",