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>
<script>
import { defineAsyncComponent } from 'vue';
const widgets = defineAsyncComponent(() => import('./widgets'));
import { defineAsyncComponent } from 'vue';
const widgets = defineAsyncComponent(() => import('./widgets'));
export default {
name: "home",
components: {
widgets
},
data(){
return {
pageLoading: true,
}
},
created(){
export default {
name: "home",
components: {
widgets
},
data() {
return {
pageLoading: true,
}
},
created() {
},
mounted(){
},
mounted() {
// console.log(this.$socket)
// console.log(this.$socket)
},
methods: {
onMounted(){
this.pageLoading = false
}
},
methods: {
onMounted() {
this.pageLoading = false
}
}
}
</script>
<style>
</style>
<style></style>

View File

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